[gold] PATCH: Filter out -Wp,-D_FORTIFY_SOURCE=. with -O0

Cary Coutant ccoutant@google.com
Thu Dec 20 20:23:00 GMT 2012
>> 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



More information about the Binutils mailing list