From: kramm Date: Wed, 17 Jan 2007 13:34:38 +0000 (+0000) Subject: activate FORTIFY_SOURCE only if warnings are enabled X-Git-Tag: release-0-8-0~34 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=605959d402f2265d6f71e1de80528ba1b9272571 activate FORTIFY_SOURCE only if warnings are enabled --- diff --git a/configure.in b/configure.in index bc96ec5..d52900c 100644 --- a/configure.in +++ b/configure.in @@ -21,7 +21,7 @@ AC_ARG_ENABLE(lame, [ --disable-lame don't compile any L.A.M.E. mp3 encoding code in], DISABLE_LAME=true) PACKAGE=swftools -VERSION=2007-01-10-2008 +VERSION=2007-01-13-1826 # ------------------------------------------------------------------ @@ -33,7 +33,7 @@ fi WARNINGS="-Wparentheses -Wimplicit -Wreturn-type -Wno-unused-value" if test "x$ENABLE_WARNINGS" '!=' "x";then - WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls" + WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 " fi if test "x$CHECKMEM" '!=' "x";then @@ -44,8 +44,8 @@ if test "x$PROFILING" '!=' "x";then fi if test "x$DEBUG" '!=' "x";then if test "x$PROFILING" = "x";then - CFLAGS="$WARNINGS -O2 -g -D_FORTIFY_SOURCE=2 $CFLAGS" - CXXFLAGS="$WARNINGS -O2 -g -D_FORTIFY_SOURCE=2 $CXXFLAGS" + CFLAGS="$WARNINGS -O2 -g $CFLAGS" + CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS" else CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS" CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"