aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-12-23 18:40:53 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-12-23 18:40:53 +0000
commitbaee5f75c5ab2dbd8ae0e84c7172ee0021d0996c (patch)
treece264f0ad2e3826fa9445df00f6f248bf415d8bf /src
parent9adaf64da343f84ca4659e6ff9be926daf628a43 (diff)
downloadpostgresql-baee5f75c5ab2dbd8ae0e84c7172ee0021d0996c.tar.gz
postgresql-baee5f75c5ab2dbd8ae0e84c7172ee0021d0996c.zip
Push responsibility for selecting out-of-line-assembler TAS code out to
the platform template files, instead of doing it directly in configure.in. This seems cleaner, and also opens the door to making the choice be dependent on the compiler being used.
Diffstat (limited to 'src')
-rw-r--r--src/template/hpux5
-rw-r--r--src/template/solaris6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/template/hpux b/src/template/hpux
index 28d836e0120..154b5743aa8 100644
--- a/src/template/hpux
+++ b/src/template/hpux
@@ -4,3 +4,8 @@ if test "$GCC" != yes ; then
CC="$CC -Ae"
CFLAGS="+O2"
fi
+
+# Pick right test-and-set (TAS) code.
+case $host in
+ hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.s ;;
+esac
diff --git a/src/template/solaris b/src/template/solaris
index 7609d0e2cbd..7338878e835 100644
--- a/src/template/solaris
+++ b/src/template/solaris
@@ -3,6 +3,12 @@ if test "$GCC" != yes ; then
CFLAGS="-O -v" # -v is like gcc -Wall
fi
+# Pick right test-and-set (TAS) code.
+case $host in
+ sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
+ i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
+esac
+
THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
THREAD_LIBS="-pthread"