OSDN Git Service

Make template CFLAGS handling consistent.
authorBruce Momjian <bruce@momjian.us>
Thu, 9 Oct 2003 14:40:37 +0000 (14:40 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 9 Oct 2003 14:40:37 +0000 (14:40 +0000)
src/template/aix
src/template/cygwin
src/template/freebsd
src/template/hpux
src/template/osf
src/template/solaris
src/template/univel
src/template/unixware

index 768d38d..bdd7b08 100644 (file)
@@ -1,9 +1,9 @@
 if test "$GCC" = yes ; then
-  CFLAGS='-O2 -pipe'
-else # not GCC
-  CFLAGS='-O2 -qmaxmem=16384 -qsrcmsg -qlonglong'
+  CFLAGS="$CFLAGS -pipe"
+else
   case $host_os in
-    aix3.2.5 | aix4.1*)
-      CFLAGS='-qmaxmem=16384 -qsrcmsg' ;;
+    aix3.2.5 | aix4.1*) ;;
+    *) CFLAGS="$CFLAGS -O2 -qlonglong";;
   esac
-fi # not GCC
+  CFLAGS="$CFLAGS -qmaxmem=16384 -qsrcmsg"
+fi
index 8a9fa00..9b342ba 100644 (file)
@@ -1 +1 @@
-SRCH_LIB='/usr/local/lib'
+SRCH_LIB="/usr/local/lib"
index 6780a8e..fd9b3b9 100644 (file)
@@ -1,7 +1,7 @@
 CFLAGS="$CFLAGS -pipe"
 
 case $host_cpu in
-  alpha*)   CFLAGS="$CFLAGS -O";;
+  alpha*)   CFLAGS="$CFLAGS -O";;  # alpha has problems with -O2
 esac
 
 THREAD_SUPPORT=yes
index 28d836e..a461df0 100644 (file)
@@ -2,5 +2,5 @@ CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
 
 if test "$GCC" != yes ; then
   CC="$CC -Ae"
-  CFLAGS="+O2"
+  CFLAGS="$CFLAGS +O2"
 fi
index 133a451..2b4dee1 100644 (file)
@@ -1,6 +1,6 @@
 if test "$GCC" != yes ; then
   CC="$CC -std"
-  CFLAGS='-O4 -Olimit 2000'
+  CFLAGS="$CFLAGS -O4 -Olimit 2000"
 fi
 
 THREAD_SUPPORT=yes
index f5ff360..5264f74 100644 (file)
@@ -1,6 +1,6 @@
 if test "$GCC" != yes ; then
   CC="$CC -Xa"                 # relaxed ISO C mode
-  CFLAGS="-O -v"               # -v is like gcc -Wall
+  CFLAGS="$CFLAGS -O -v"       # -v is like gcc -Wall
 fi
 
 THREAD_SUPPORT=yes
index d48aa7c..12d1149 100644 (file)
@@ -1,2 +1,2 @@
-CFLAGS='-v -O -K i486,host,inline,loop_unroll -Dsvr4'
+CFLAGS="$CFLAGS -v -O -K i486,host,inline,loop_unroll -Dsvr4"
 LIBS="-lc89"
index cb1381d..8ad4a74 100644 (file)
@@ -4,7 +4,7 @@ else
 # the -Kno_host is temporary for a bug in the compiler.  See -hackers
 # discussion on 7-8/Aug/2003.
 # when the 7.1.3UP3 or later compiler is out, we can do a version check.
-  CFLAGS='-O -Kinline,no_host'
+  CFLAGS="$CFLAGS -O -Kinline,no_host"
   THREAD_CPPFLAGS="-K pthread"
 fi