This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold] PATCH: Filter out -Wp,-D_FORTIFY_SOURCE=. with -O0
- From: Cary Coutant <ccoutant at google dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, Binutils <binutils at sourceware dot org>
- Date: Thu, 20 Dec 2012 12:23:36 -0800
- Subject: Re: [gold] PATCH: Filter out -Wp,-D_FORTIFY_SOURCE=. with -O0
- References: <20121025043723.GA19815@gmail.com> <CAKOQZ8xHG7hYjSktooiKom3f9dodf=tMB97z4TuOFo+0U6F-_w@mail.gmail.com> <CAMe9rOpOT3hEeyy_f3gUXAdR9-5XqH=qciEXO-5zXg9RK7yEpg@mail.gmail.com> <CAKOQZ8xy6w3SWhzV3crdpEeeOmfbRv=ESrUdJYZeBatVuwTvZw@mail.gmail.com> <CAMe9rOpmbEYhVo+V7FFGXWD3FtJ=Gu5tJWWWs5183rvAKo-WDQ@mail.gmail.com> <CAKOQZ8z4OOQepEHA+0WXjoctRMCQFPY0=ZXkTHHDNFNAeC6=ww@mail.gmail.com>
>> 2012-10-25 H.J. Lu <hongjiu.lu@intel.com>
>>
>> * testsuite/Makefile.am (COMPILE1): New variable. Renamed from
>> COMPILE generated by automake.
>> (LINK1): Likewise.
>> (CXXCOMPILE1): Likewise.
>> (CXXLINK1): Likewise.
>> (COMPILE): Strip out -Wp,-D_FORTIFY_SOURCE= from COMPILE1.
>> (LINK): Likewise.
>> (CXXCOMPILE): Likewise.
>> (CXXLINK): Likewise.
>> * testsuite/Makefile.in: Regenerated.
>
> This is OK.
Wouldn't it have worked to add -U_FORTIFY_SOURCE to CPPFLAGS? It seems
like that would have been a lot cleaner. (All those `echo ... | sed
...` in my make output hurt my eyes and make it a pain to cut and
paste compile commands.)
-cary