Blame SOURCES/0001-Only-set-RPM_OPT_FLAGS-if-undefined.patch

16aa69
From d214fbcca2578677f06d2561e357eb483be93782 Mon Sep 17 00:00:00 2001
16aa69
From: "d.marlin" <dmarlin@redhat.com>
16aa69
Date: Mon, 24 Jun 2013 14:57:40 -0500
16aa69
Subject: [PATCH 01/41] Only set RPM_OPT_FLAGS if undefined.
16aa69
16aa69
Currently RPM_OPT_FLAGS are set even if they were already defined.
16aa69
This overrides any defaults set by RPM, including architecture-specific
16aa69
values that may be needed to compile on some architectures.
16aa69
16aa69
To avoid this issue, only set RPM_OPT_FLAGS if previously undefined.
16aa69
16aa69
Signed-off-by: David A. Marlin <dmarlin@redhat.com>
16aa69
---
16aa69
 Makefile | 2 +-
16aa69
 1 file changed, 1 insertion(+), 1 deletion(-)
16aa69
16aa69
diff --git a/Makefile b/Makefile
16aa69
index 3f6370b..5dbf0f7 100644
16aa69
--- a/Makefile
16aa69
+++ b/Makefile
16aa69
@@ -23,7 +23,7 @@ TARGETS = grubby
16aa69
 OBJECTS = grubby.o log.o
16aa69
 
16aa69
 CC = gcc
16aa69
-RPM_OPT_FLAGS := -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
16aa69
+RPM_OPT_FLAGS ?= -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
16aa69
 CFLAGS += $(RPM_OPT_FLAGS) -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb
16aa69
 LDFLAGS := 
16aa69
 
16aa69
-- 
16aa69
2.4.3
16aa69