From: Michal Privoznik Date: Thu, 5 Sep 2013 10:54:49 +0000 (+0200) Subject: configure: Undefine _FORTIFY_SOURCE prior using it X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~1335^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e600cdf3b4ffe3370eb10a8e43ed547ac0f716cf;p=sdk%2Femulator%2Fqemu.git configure: Undefine _FORTIFY_SOURCE prior using it Currently, we are enforcing the _FORTIFY_SOURCE=2 without any previous detection if the macro has been already defined, e.g. by environment, or is just enabled by compiler by default. Signed-off-by: Michal Privoznik Signed-off-by: Jan Vesely Reviewed-by: Peter Maydell Signed-off-by: Michael Tokarev --- diff --git a/configure b/configure index 1b6f68b..8ad42bc 100755 --- a/configure +++ b/configure @@ -3520,7 +3520,7 @@ if test "$gcov" = "yes" ; then CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS" LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS" elif test "$debug" = "no" ; then - CFLAGS="-O2 -D_FORTIFY_SOURCE=2 $CFLAGS" + CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS" fi