chiark / gitweb /
autogen.sh: undef _FORTIFY_SOURCE, which now logs warnings when used with -O0
authorKay Sievers <kay@vrfy.org>
Tue, 8 May 2012 00:51:26 +0000 (02:51 +0200)
committerKay Sievers <kay@vrfy.org>
Tue, 8 May 2012 00:51:26 +0000 (02:51 +0200)
autogen.sh
configure.ac

index d27b5c676420bf43cd6abc621c8847527ba9a79e..be88a8d6f37496485c23abb49c9423ed594f683c 100755 (executable)
@@ -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
index 46320591199306b079a3266e670a6dc3cbc776b8..358383635193553228fccd37c39c304ce336519c 100644 (file)
@@ -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}
 ])