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

with --enable-optimize: remove "-O2" from default CFLAGS before we add our own 
"-Ox"
(as some compilers do not really like having multiple -Ox on their commandline)


diffs (14 lines):

diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -1088,8 +1088,9 @@
   else
        origCFLAGS="$CFLAGS"
     dnl  remove "-g" as some compilers don't like "-g -Ox" combinations
+    dnl  remove "-O2" as we add "-Ox" and some compilers don't like "-Oy -Ox" 
combinations
     CFLAGS=" $CFLAGS "
-    CFLAGS="`echo "$CFLAGS" | sed -e 's| -g | |g' -e 's|^ ||' -e 's| $||'`"
+    CFLAGS="`echo "$CFLAGS" | sed -e 's| -g | |g' -e 's| -O2 | |g' -e 's|^ ||' 
-e 's| $||'`"
     JAVACFLAGS=" $JAVACFLAGS "
     JAVACFLAGS="`echo "$JAVACFLAGS" | sed -e 's| -g | |g' -e 's| -g:[[a-z]]* | 
|g' -e 's|^ ||' -e 's| $||'`"
     dnl  Optimization flags
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to