Changeset: 01aae7ed4efe for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=01aae7ed4efe
Modified Files:
        configure.ag
Branch: Oct2012
Log Message:

configure: fix configure output for --enable-optimize

Don't write two messages at the same time.  Move the _FORTIFY_SOURCE
check down, to avoid writing two messages at the same line.  This has
the extra of checking this flag also for non-GCC compilers, which may
make sense since it is a pre-processor step that regardless compiler
might enable something in the (system) header files.


diffs (25 lines):

diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -917,10 +917,7 @@ if test "x$enable_optim" = xyes; then
          #   running code for SQL, some faster for M5
          # - x86/x64: -fast switch results in json code producing wrong
          #   results, or segaults (when used with Mtest)
-
-      # The default configure invocation when doing an rpmbuild also uses this
-      MCHECK_ADD_FLAG([-Wp,-D_FORTIFY_SOURCE=2])
-      ;;
+         ;;
     *)
       case "$host-$icc_ver" in
       dnl handle non-Intel compilers ($icc_ver=""), first
@@ -1010,6 +1007,9 @@ if test "x$enable_optim" = xyes; then
        done
        changedCFLAGS="`echo $changedCFLAGS | sed -e 's|^, ||'`"
        AC_MSG_RESULT([yes: $changedCFLAGS])
+
+       # The default configure invocation when doing an rpmbuild also uses this
+       MCHECK_ADD_FLAG([-Wp,-D_FORTIFY_SOURCE=2])
 else
        AC_MSG_RESULT([no])
 fi
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to