summaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-12-29 23:47:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-12-29 23:47:40 +0000
commit96ecf9d5aa1b0a0da72a223460545750d06ceb89 (patch)
tree1d43f456d5bc9ee5e9c220b260701e80829ac437 /src/template
parentec0e3075962c328681170353b73144bc2ce27d21 (diff)
downloadpostgresql-96ecf9d5aa1b0a0da72a223460545750d06ceb89.tar.gz
Support Sun's compiler on SunOS4 (a/k/a Solaris 9). Per ayan@ayan.net
Diffstat (limited to 'src/template')
-rw-r--r--src/template/sunos47
1 files changed, 7 insertions, 0 deletions
diff --git a/src/template/sunos4 b/src/template/sunos4
index e69de29bb2..782fe6ee6c 100644
--- a/src/template/sunos4
+++ b/src/template/sunos4
@@ -0,0 +1,7 @@
+if test "$GCC" != yes ; then
+ CC="$CC -Xa" # relaxed ISO C mode
+ CFLAGS="-v -DSUNOS4_CC" # -v is like gcc -Wall
+ if test "$enable_debug" != yes; then
+ CFLAGS="$CFLAGS -O" # any optimization breaks debug
+ fi
+fi