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 COMMITTED] Fix pretty printer failures when CPPFLAGS is defined with optimizations.


On Saturday 24 December 2016 12:19 AM, Carlos O'Donell wrote:
> In my build scripts I use:
> 
> export CFLAGS="-g -O2 -Wl,--build-id=none"
> ...
> export CPPFLAGS="-g -O2 -Wl,--build-id=none"
> 
> The CPPFLAGS end up _after_ the per-test CFLAGS.
> 
> This means that the pretty printer tests compile at -O2 and fail.

-O2 is a C flag, not a cpp flag, so maybe the script is wrong?
Likewise, -Wl... flags ought to be in LDFLAGS.

Siddhesh


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