summaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-09-24 00:21:32 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-09-24 00:21:32 +0000
commit409b38f514b1b03bbb1cc7daff58974b70b93c37 (patch)
treeb2b3f7f9e000ecac71a12086cdcc086f76ec9055 /src/template
parentae169e84f791ac939ef31aae87a5b6fdd804a22a (diff)
downloadpostgresql-409b38f514b1b03bbb1cc7daff58974b70b93c37.tar.gz
Fix TAS assembly stuff for Solaris/386. (I'm not in a position to
actually test this, but it couldn't be broken any worse than it was...)
Diffstat (limited to 'src/template')
-rw-r--r--src/template/solaris17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/template/solaris b/src/template/solaris
index f2e7aaa047..4b6d9cdb58 100644
--- a/src/template/solaris
+++ b/src/template/solaris
@@ -3,10 +3,21 @@ if test "$GCC" != yes ; then
CFLAGS="-O -v" # -v is like gcc -Wall
fi
-# Pick right test-and-set (TAS) code.
+# Pick right test-and-set (TAS) code. We need out-of-line assembler
+# when not using gcc.
case $host in
- sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
- i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
+ sparc-*-solaris*)
+ if test "$GCC" != yes ; then
+ need_tas=yes
+ tas_file=solaris_sparc.s
+ fi
+ ;;
+ i?86-*-solaris*)
+ if test "$GCC" != yes ; then
+ need_tas=yes
+ tas_file=solaris_i386.s
+ fi
+ ;;
esac
# -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things