[PATCH] configure: use -Wp, -D_FORTIFY_SOURCE=0 instead of -D_FORTIFY_SOURCE=0
Alexandre Julliard
julliard at winehq.org
Fri Sep 28 10:14:03 CDT 2012
Anssi Hannula <anssi.hannula at iki.fi> writes:
> Some Linux distributions (at least Mageia) build packages with
> -Wp,-D_FORTIFY_SOURCE=2 by default. There is a check in configure which
> checks for enabled fortify and adds "-U_FORTIFY_SOURCE
> -D_FORTIFY_SOURCE=0". Unfortunately, -Wp,-Dfoo are applied after -Dfoo,
> so the added flags fail to override the fortify in the CFLAGS.
I would say that's a distro bug. Defaulting to Fortify is already broken
enough, but making it even harder to disable is stupid. I don't think
we want to get into that kind of arms race.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list