1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-24 09:27:52 +03:00

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...)
This commit is contained in:
Tom Lane
2004-09-24 00:21:32 +00:00
parent ae169e84f7
commit 409b38f514
2 changed files with 27 additions and 4 deletions

View File

@@ -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