aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2003-10-25 15:32:11 +0000
committerPeter Eisentraut <peter_e@gmx.net>2003-10-25 15:32:11 +0000
commit378f59904a8b6c36c25e5ce669633f1fa4491e3c (patch)
tree5ebdad148f89ae08e1d5cb74675896bdc186d44e /src
parent6db0a6b0352ff4644166f3b257e2e13103b770f9 (diff)
downloadpostgresql-378f59904a8b6c36c25e5ce669633f1fa4491e3c.tar.gz
postgresql-378f59904a8b6c36c25e5ce669633f1fa4491e3c.zip
Fix CFLAGS selection to actually work. Add test to detect whether gcc's
option -fno-strict-aliasing is available.
Diffstat (limited to 'src')
-rw-r--r--src/template/aix4
-rw-r--r--src/template/bsdi4
-rw-r--r--src/template/freebsd2
-rw-r--r--src/template/hpux2
-rw-r--r--src/template/osf2
-rw-r--r--src/template/qnx41
-rw-r--r--src/template/solaris3
-rw-r--r--src/template/univel2
-rw-r--r--src/template/unixware2
9 files changed, 8 insertions, 14 deletions
diff --git a/src/template/aix b/src/template/aix
index f72be4f9a05..1e3d2261957 100644
--- a/src/template/aix
+++ b/src/template/aix
@@ -1,7 +1,7 @@
if test "$GCC" != yes ; then
case $host_os in
aix3.2.5 | aix4.1*) ;;
- *) CFLAGS="$CFLAGS -O2 -qlonglong";;
+ *) CFLAGS="-O2 -qlonglong";;
esac
- CFLAGS="$CFLAGS -qmaxmem=16384 -qsrcmsg"
+ CFLAGS="-O -qmaxmem=16384 -qsrcmsg"
fi
diff --git a/src/template/bsdi b/src/template/bsdi
index 70b27910a17..4c62ce44217 100644
--- a/src/template/bsdi
+++ b/src/template/bsdi
@@ -1,7 +1,3 @@
-case $host_cpu in
- i?86) CFLAGS="$CFLAGS -m486";;
-esac
-
case $host_os in
bsdi2.0 | bsdi2.1 | bsdi3*) CC=gcc2;;
esac
diff --git a/src/template/freebsd b/src/template/freebsd
index fbf01fcd8aa..2b155d12db9 100644
--- a/src/template/freebsd
+++ b/src/template/freebsd
@@ -1,5 +1,5 @@
case $host_cpu in
- alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
+ alpha*) CFLAGS="-O";; # alpha has problems with -O2
esac
THREAD_SUPPORT=yes
diff --git a/src/template/hpux b/src/template/hpux
index a461df0dcd7..28d836e0120 100644
--- a/src/template/hpux
+++ b/src/template/hpux
@@ -2,5 +2,5 @@ CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
if test "$GCC" != yes ; then
CC="$CC -Ae"
- CFLAGS="$CFLAGS +O2"
+ CFLAGS="+O2"
fi
diff --git a/src/template/osf b/src/template/osf
index 2b4dee1546b..312d6cdfa51 100644
--- a/src/template/osf
+++ b/src/template/osf
@@ -1,6 +1,6 @@
if test "$GCC" != yes ; then
CC="$CC -std"
- CFLAGS="$CFLAGS -O4 -Olimit 2000"
+ CFLAGS="-O4 -Olimit 2000"
fi
THREAD_SUPPORT=yes
diff --git a/src/template/qnx4 b/src/template/qnx4
index fc55af2c57b..4ab0ae1db93 100644
--- a/src/template/qnx4
+++ b/src/template/qnx4
@@ -1,2 +1 @@
-CFLAGS="$CFLAGS -I/usr/local/include"
LIBS="-lunix"
diff --git a/src/template/solaris b/src/template/solaris
index 5264f749859..7609d0e2cbd 100644
--- a/src/template/solaris
+++ b/src/template/solaris
@@ -1,9 +1,8 @@
if test "$GCC" != yes ; then
CC="$CC -Xa" # relaxed ISO C mode
- CFLAGS="$CFLAGS -O -v" # -v is like gcc -Wall
+ CFLAGS="-O -v" # -v is like gcc -Wall
fi
THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
THREAD_LIBS="-pthread"
-
diff --git a/src/template/univel b/src/template/univel
index 12d11496735..30980fee0a5 100644
--- a/src/template/univel
+++ b/src/template/univel
@@ -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"
diff --git a/src/template/unixware b/src/template/unixware
index 8ad4a745d2e..1b420c81c43 100644
--- a/src/template/unixware
+++ b/src/template/unixware
@@ -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="$CFLAGS -O -Kinline,no_host"
+ CFLAGS="-O -Kinline,no_host"
THREAD_CPPFLAGS="-K pthread"
fi