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

Joakim Hernberg jbh at alchemy.lu
Wed Apr 10 14:07:30 EDT 2013


On Mon, 08 Apr 2013 16:54:54 +1000
Allan McRae <allan at archlinux.org> wrote:

> Hi,
> 
> With pacman-4.1 we introduced CPPFLAGS in makepkg.conf and moved the
> -D_FORTIFY_SOURCE=2 flag out of C{,XX}FLAGS to there (where it should
> be).

This of course will break wine's builtin workaround for FORTIFY_SOURCE,
which assumed that it was in CFLAGS.  Maybe no matter as for some
reason it wasn't working on archlinux in any case.

It produces the following (snipped from the gcc output)
-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0, which for
some reason seems to produce broken code.

-- 

   Joakim


More information about the arch-general mailing list