summaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-11-27 05:03:26 +0000
committerBruce Momjian <bruce@momjian.us>2004-11-27 05:03:26 +0000
commit3aa9776d95ca8d96798545f9eaa496303a88b51a (patch)
tree2df7b52d31f0351947bb6ab4438e8b85e71a5e91 /src/template
parentb82323e05e57d7c4fb7a8eab9f27eb059d28309a (diff)
downloadpostgresql-3aa9776d95ca8d96798545f9eaa496303a88b51a.tar.gz
Add to CPPFLAGS/CFLAGS in template files, don't over-ride them.
Diffstat (limited to 'src/template')
-rw-r--r--src/template/aix4
-rw-r--r--src/template/freebsd2
-rw-r--r--src/template/hpux4
-rw-r--r--src/template/linux2
-rw-r--r--src/template/osf2
-rw-r--r--src/template/solaris2
-rw-r--r--src/template/univel2
-rw-r--r--src/template/unixware4
8 files changed, 11 insertions, 11 deletions
diff --git a/src/template/aix b/src/template/aix
index 48f1110f3e..96641125bb 100644
--- a/src/template/aix
+++ b/src/template/aix
@@ -1,10 +1,10 @@
if test "$GCC" != yes ; then
case $host_os in
aix3.2.5 | aix4.1*)
- CFLAGS="-O -qmaxmem=16384 -qsrcmsg"
+ CFLAGS="$CFLAGS -O -qmaxmem=16384 -qsrcmsg"
;;
*)
- CFLAGS="-O2 -qmaxmem=16384 -qsrcmsg -qlonglong"
+ CFLAGS="$CFLAGS -O2 -qmaxmem=16384 -qsrcmsg -qlonglong"
;;
esac
fi
diff --git a/src/template/freebsd b/src/template/freebsd
index 718359e07c..48fc9dfa34 100644
--- a/src/template/freebsd
+++ b/src/template/freebsd
@@ -1,3 +1,3 @@
case $host_cpu in
- alpha*) CFLAGS="-O";; # alpha has problems with -O2
+ alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
esac
diff --git a/src/template/hpux b/src/template/hpux
index 775c55a935..f8b6197f80 100644
--- a/src/template/hpux
+++ b/src/template/hpux
@@ -1,8 +1,8 @@
-CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
+CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
if test "$GCC" != yes ; then
CC="$CC -Ae"
- CFLAGS="+O2"
+ CFLAGS="$CFLAGS +O2"
fi
# Pick right test-and-set (TAS) code. We need out-of-line assembler
diff --git a/src/template/linux b/src/template/linux
index dfb391ea54..ecb7ba4bab 100644
--- a/src/template/linux
+++ b/src/template/linux
@@ -1,2 +1,2 @@
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
-CPPFLAGS="-D_GNU_SOURCE"
+CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
diff --git a/src/template/osf b/src/template/osf
index e845cfecea..fbe4ab03eb 100644
--- a/src/template/osf
+++ b/src/template/osf
@@ -1,4 +1,4 @@
if test "$GCC" != yes ; then
CC="$CC -std"
- CFLAGS="-O -ieee"
+ CFLAGS="$CFLAGS -O -ieee"
fi
diff --git a/src/template/solaris b/src/template/solaris
index 4b6d9cdb58..93f3cd730d 100644
--- a/src/template/solaris
+++ b/src/template/solaris
@@ -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
# Pick right test-and-set (TAS) code. We need out-of-line assembler
diff --git a/src/template/univel b/src/template/univel
index 30980fee0a..12d1149673 100644
--- a/src/template/univel
+++ b/src/template/univel
@@ -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"
diff --git a/src/template/unixware b/src/template/unixware
index 499eb9c349..a4125af2d9 100644
--- a/src/template/unixware
+++ b/src/template/unixware
@@ -13,9 +13,9 @@ void g(void){
__EOF__
if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
- CFLAGS="-O -Kinline"
+ CFLAGS="$CFLAGS -O -Kinline"
else
- CFLAGS="-O -Kinline,no_host"
+ CFLAGS="$CFLAGS -O -Kinline,no_host"
fi
rm -f conftest.*