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

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