From: Jakub Wilk <[email protected]>

Build environments (like the ones from Distributions like Debian) may want
to overwrite the CFLAGS/CXXFLAGS to introduce things like hardening flags or
prepare special debug builds. This is not cleanly possible when the Makefile
presets a value unconditionally.
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index d4e3cce..8b2c69d 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,8 @@ include utility/Makefile
 X_BUILD_IMPLICIT=1
 
 # -s silcently corrupts binaries on OS X, sigh -ReneR
-CFLAGS = -Wall -O2
-CXXFLAGS = -Wall -O2 -Wno-sign-compare
+CFLAGS ?= -Wall -O2
+CXXFLAGS = $(CFLAGS) -Wno-sign-compare
 #CFLAGS = -Wall -O0 -ggdb
 #CXXFLAGS = -Wall -O0 -ggdb
 
-- 
2.1.4

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe exact-image

Reply via email to