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

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