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 v2] tests: move -D_FORTIFY_SOURCE to CPPFLAGS


On Tue, May 8, 2012 at 12:24 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Tuesday 08 May 2012 09:28:15 Carlos O'Donell wrote:
>> On Tue, May 8, 2012 at 1:55 AM, Mike Frysinger wrote:
>> > +# Need to make sure the settings here override what configure might
>> > +# have set up for us, so keep the CFLAGS/CPPFLAGS split logical.
>>
>> It doesn't say why we put the -D_FORTIFY_SOURCE=1 in CPPFLAGS?
>
> the "keep the ... split logical" implies why -- -D/-I/etc... flags are
> CPPFLAGS, not CFLAGS. ?this isn't unique to glibc.
>
>> # Need to make sure the settings here override what configure might
>> # have set up for us, so use CPPFLAGS (last in the expanded list)
>> # to set test flags we always want enabled.
>
> that makes it sound like we should be using CPPFLAGS for everything we want to
> override

That's not far from the truth though? :-)

Any suggestion for improving it?

Cheers,
Carlos.


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