This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: fix powerpc build
Nathan Sidwell schrieb:
> Joseph S. Myers wrote:
>> On Mon, 9 Feb 2009, Nathan Sidwell wrote:
>>
>>> Newer GCC's complain about passing non-constant strings to printf-like
>>> functions. With -Werror binutils fails to build.
>>
>> This is actually a local change in Ubuntu (it appears Ubuntu 8.10
>> enables -Wformat -Wformat-security -D_FORTIFY_SOURCE=2
>> -fstack-protector -Wl,-z,relro by default), and maybe similar changes
>> in other distributions.
>
> How, mm, 'pleasant'.
Other distributions do build with hardening enabled as well, but did choose to
inject non-default compiler flags at package build time instead of changing the
compiler defaults. So you made one 'pleasant' experience, while with injecting
flags at package build time you get a different experience when building from
upstream source and when building the package. The gcc man page is updated to
document these non-defaults, and it was mentioned in the release notes for 8.10.
Debian doesn't change the defaults yet, but there is some discussion how to
build with these flags turned on by default.
Matthias