|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [Qemu-trivial] [PATCH] configure: Undefine _FORTIFY_SOURCE prior using it |
Date: | Wed, 06 Feb 2013 09:05:23 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 2013-02-06 06:49, Stefan Hajnoczi wrote:
$ echo "int main() {return 0;}" | gcc -D_FORTIFY_SOURCE=2 -x c - <command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default] <stdin>:1:0: note: this is the location of the previous definition in which case we must undefine it. However, if the _FORTIFY_SOURCE is defined by environment, I think we should not override it. So maybe need a different approach. Anyway, with current state I cannot compile. I am using gcc version 4.7.2 (Gentoo 4.7.2 p1.3, pie-0.5.5)It would be nice to fix this for QEMU 1.4 but my gcc FORTIFY_SOURCE foo is not strong enough to know what the best approach is here.
Using -U -D is just fine to override something that the distro turned on by default.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |