OSDN Git Service

Don't bother adding to cflags/cppflags, just set them because configure
authorBruce Momjian <bruce@momjian.us>
Thu, 2 Dec 2004 18:11:40 +0000 (18:11 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 2 Dec 2004 18:11:40 +0000 (18:11 +0000)
handles that, and make solaris debug use no optimization.

src/template/aix
src/template/freebsd
src/template/hpux
src/template/linux
src/template/osf
src/template/solaris
src/template/univel
src/template/unixware

index 9664112..48f1110 100644 (file)
@@ -1,10 +1,10 @@
 if test "$GCC" != yes ; then
   case $host_os in
     aix3.2.5 | aix4.1*)
-      CFLAGS="$CFLAGS -O -qmaxmem=16384 -qsrcmsg"
+      CFLAGS="-O -qmaxmem=16384 -qsrcmsg"
       ;;
     *)
-      CFLAGS="$CFLAGS -O2 -qmaxmem=16384 -qsrcmsg -qlonglong"
+      CFLAGS="-O2 -qmaxmem=16384 -qsrcmsg -qlonglong"
       ;;
   esac
 fi
index 48fc9df..718359e 100644 (file)
@@ -1,3 +1,3 @@
 case $host_cpu in
-  alpha*)   CFLAGS="$CFLAGS -O";;  # alpha has problems with -O2
+  alpha*)   CFLAGS="-O";;  # alpha has problems with -O2
 esac
index f8b6197..775c55a 100644 (file)
@@ -1,8 +1,8 @@
-CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
+CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
 
 if test "$GCC" != yes ; then
   CC="$CC -Ae"
-  CFLAGS="$CFLAGS +O2"
+  CFLAGS="+O2"
 fi
 
 # Pick right test-and-set (TAS) code.  We need out-of-line assembler
index ecb7ba4..dfb391e 100644 (file)
@@ -1,2 +1,2 @@
 # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
-CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
+CPPFLAGS="-D_GNU_SOURCE"
index fbe4ab0..e845cfe 100644 (file)
@@ -1,4 +1,4 @@
 if test "$GCC" != yes ; then
   CC="$CC -std"
-  CFLAGS="$CFLAGS -O -ieee"
+  CFLAGS="-O -ieee"
 fi
index 93f3cd7..e6ee10f 100644 (file)
@@ -1,6 +1,9 @@
 if test "$GCC" != yes ; then
   CC="$CC -Xa"                 # relaxed ISO C mode
-  CFLAGS="$CFLAGS -O -v"               # -v is like gcc -Wall
+  CFLAGS="-v"                  # -v is like gcc -Wall
+  if test "$enable_debug" != yes; then
+    CFLAGS="$CFLAGS -O"                # any optimization breaks debug
+  fi
 fi
 
 # Pick right test-and-set (TAS) code.  We need out-of-line assembler
index 12d1149..30980fe 100644 (file)
@@ -1,2 +1,2 @@
-CFLAGS="$CFLAGS -v -O -K i486,host,inline,loop_unroll -Dsvr4"
+CFLAGS="-v -O -K i486,host,inline,loop_unroll -Dsvr4"
 LIBS="-lc89"
index a4125af..499eb9c 100644 (file)
@@ -13,9 +13,9 @@ void g(void){
 __EOF__
 
   if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
-    CFLAGS="$CFLAGS -O -Kinline"
+    CFLAGS="-O -Kinline"
   else
-    CFLAGS="$CFLAGS -O -Kinline,no_host"
+    CFLAGS="-O -Kinline,no_host"
   fi
   rm -f conftest.*