This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] respect build CPPFLAGS


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

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]