[arch-dev-public] Build issues due to -D_FORTIFY_SOURCE=2 in CPPFLAGS

Allan McRae allan at archlinux.org
Wed Apr 10 03:35:15 EDT 2013

On 08/04/13 17:18, Thomas Bächler wrote:
> Am 08.04.2013 08:54, schrieb Allan McRae:
>> What do we do?   Do we need to ignore the fact the this should be in
>> CPPFLAGS and move it back to C{,XX}FLAGS?
>> The other options is for packages that are affected by this to unset the
>> CPPFLAGS and add it to CFLAGS in the PKGBUILD, but I have no idea how
>> many packages this affects.  What portion of KDE and GNOME were built
>> with pacman-4.1?
> CPPFLAGS="$CPPFLAGS -O2" - problem solved.

I took a much more restrained approach and only adjusted configure test.

sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure


More information about the arch-dev-public mailing list