From: Kay Sievers Date: Tue, 8 May 2012 00:51:26 +0000 (+0200) Subject: autogen.sh: undef _FORTIFY_SOURCE, which now logs warnings when used with -O0 X-Git-Tag: v183~142 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66be6554807773028a0111addb8e75c3cab11117;p=systemd autogen.sh: undef _FORTIFY_SOURCE, which now logs warnings when used with -O0 --- diff --git a/autogen.sh b/autogen.sh index d27b5c67..be88a8d6 100755 --- a/autogen.sh +++ b/autogen.sh @@ -51,16 +51,14 @@ args="$args \ " fi -if [ "x$1" != "xc" ]; then - echo - echo "----------------------------------------------------------------" - echo "Initialized build system. For a common configuration please run:" - echo "----------------------------------------------------------------" - echo - echo "./configure CFLAGS='-g -O0' $args" - echo -else - echo ./configure CFLAGS='-g -O0' $args - ./configure CFLAGS='-g -O0' $args +echo +echo "----------------------------------------------------------------" +echo "Initialized build system. For a common configuration please run:" +echo "----------------------------------------------------------------" +echo +echo "./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args" +echo +if [ "x$1" == "xc" ]; then + ./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args make clean fi diff --git a/configure.ac b/configure.ac index 46320591..35838363 100644 --- a/configure.ac +++ b/configure.ac @@ -767,4 +767,8 @@ AC_MSG_RESULT([ D-Bus interfaces dir: ${with_dbusinterfacedir} Split /usr: ${enable_split_usr} man pages: ${have_manpages} + + CFLAGS: ${CFLAGS} + CPPLAGS: ${CPPFLAGS} + LDFLAGS: ${LDFLAGS} ])