[PATCH] respect build CPPFLAGS

Mike Frysinger vapier@gentoo.org
Mon Sep 19 17:02:00 GMT 2011


the configure script takes care of setting up CPPFLAGS from the user, but the 
glibc makefiles don't actually respect the result.  this patch passes along 
the values accordingly.
-mike

2011-09-19  Mike Frysinger  <vapier@gentoo.org>

	* Makeconfig (CPPFLAGS): Add $(CPPFLAGS-config).
	* config.make.in (CPPFLAGS-config): Define.

--- a/Makeconfig
+++ b/Makeconfig
@@ -703,7 +704,7 @@ libio-include = -I$(..)libio
 # Note that we can't use -std=* in CPPFLAGS, because it overrides
 # the implicit -lang-asm and breaks cpp behavior for .S files--notably
 # it causes cpp to stop predefining __ASSEMBLER__.
-CPPFLAGS = $($(subdir)-CPPFLAGS) $(+includes) $(defines) \
+CPPFLAGS = $(CPPFLAGS-config) $($(subdir)-CPPFLAGS) $(+includes) $(defines) \
 	   -include $(..)include/libc-symbols.h $(sysdep-CPPFLAGS) \
 	   $(CPPFLAGS-$(suffix $@)) \
 	   $(foreach lib,$(libof-$(basename $(@F))) \
--- a/config.make.in
+++ b/config.make.in
@@ -106,6 +106,7 @@ CC = @CC@
 CXX = @CXX@
 BUILD_CC = @BUILD_CC@
 CFLAGS = @CFLAGS@
+CPPFLAGS-config = @CPPFLAGS@
 ASFLAGS-config = @ASFLAGS_config@
 AR = @AR@
 MAKEINFO = @MAKEINFO@
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110919/4270b70c/attachment.sig>


More information about the Libc-alpha mailing list