1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00
Files
postgres/src/template/solaris
Bruce Momjian f7bae20d67 Don't bother adding to cflags/cppflags, just set them because configure
handles that, and make solaris debug use no optimization.
2004-12-02 18:11:40 +00:00

27 lines
600 B
Plaintext

if test "$GCC" != yes ; then
CC="$CC -Xa" # relaxed ISO C mode
CFLAGS="-v" # -v is like gcc -Wall
if test "$enable_debug" != yes; then
CFLAGS="$CFLAGS -O" # any optimization breaks debug
fi
fi
# Pick right test-and-set (TAS) code. We need out-of-line assembler
# when not using gcc.
case $host in
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