2014-03-03 09:59:03 +01:00
|
|
|
From bcaad0432c18a9a792fce4b10e5a0e7014461dc5 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
|
|
Date: Wed, 26 Feb 2014 12:45:56 +0100
|
|
|
|
Subject: [PATCH 1/2] Allow OPTFLAGS to override default CFLAGS
|
|
|
|
|
|
|
|
When building a package the build system might be wanting to
|
|
|
|
pass in some additional CFLAGS. So allow for the OPTFLAGS setting
|
|
|
|
to override the default CFLAGS.
|
|
|
|
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
---
|
|
|
|
usr/Makefile | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
2007-04-11 04:44:39 +02:00
|
|
|
diff --git a/usr/Makefile b/usr/Makefile
|
2014-03-03 09:59:03 +01:00
|
|
|
index e29826c..31067e8 100644
|
2007-04-11 04:44:39 +02:00
|
|
|
--- a/usr/Makefile
|
|
|
|
+++ b/usr/Makefile
|
2019-02-16 21:04:09 +01:00
|
|
|
@@ -40,6 +40,9 @@ INCLUDES += -I.
|
2007-04-11 04:44:39 +02:00
|
|
|
|
2008-08-08 17:24:37 +02:00
|
|
|
CFLAGS += -D_GNU_SOURCE
|
|
|
|
CFLAGS += $(INCLUDES)
|
2019-02-16 21:04:09 +01:00
|
|
|
+ifneq ($(OPTFAGS),)
|
2008-08-08 17:24:37 +02:00
|
|
|
+CFLAGS += $(OPTFLAGS)
|
2019-02-16 21:04:09 +01:00
|
|
|
+endif
|
2012-06-04 14:42:41 +02:00
|
|
|
ifneq ($(DEBUG),)
|
|
|
|
CFLAGS += -g -O0 -ggdb -rdynamic
|
|
|
|
else
|