1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

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.
This commit is contained in:
Tom Lane
2003-12-23 18:40:53 +00:00
parent 9adaf64da3
commit baee5f75c5
4 changed files with 52 additions and 33 deletions

View File

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

View File

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