[PATCH] respect build CPPFLAGS

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


On Monday, September 19, 2011 12:31:56 Mike Frysinger wrote:
> 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.

for a little background, some distros (like Debian, Ubuntu, Gentoo, and i'm 
sure others) enable _FORTIFY_SOURCE by default in their compilers.  the way to 
disable this is by using -U_FORTIFY_SOURCE:
	CPPFLAGS=-U_FORTIFY_SOURCE ./configure ...

i could see this also being used to do CPPFLAGS=-DNEBUG to turn off asserts in 
glibc, or CPPFLAGS=-D_FORTIFY_SOURCE to build glibc itself with fortification, 
or maybe something even crazier :).
-mike
-------------- 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/3fbc4da6/attachment.sig>


More information about the Libc-alpha mailing list