This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH COMMITTED] Fix pretty printer failures when CPPFLAGS is defined with optimizations.
- From: Siddhesh Poyarekar <siddhesh at gotplt dot org>
- To: Carlos O'Donell <carlos at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>, Martin Galvan <martin dot galvan at tallertechnologies dot com>
- Date: Mon, 26 Dec 2016 10:35:02 +0530
- Subject: Re: [PATCH COMMITTED] Fix pretty printer failures when CPPFLAGS is defined with optimizations.
- Authentication-results: sourceware.org; auth=none
- References: <1ca1a503-d571-2162-bf31-8059aae2564c@redhat.com>
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