]> granicus.if.org Git - postgresql/blob - src/template/solaris
Move USE_WIDE_UPPER_LOWER define to c.h, and remove TS_USE_WIDE and use
[postgresql] / src / template / solaris
1 if test "$GCC" != yes ; then
2   CC="$CC -Xa"                  # relaxed ISO C mode
3   CFLAGS="-v -DSUNOS4_CC"       # -v is like gcc -Wall
4   if test "$enable_debug" != yes; then
5     CFLAGS="$CFLAGS -O"         # any optimization breaks debug
6   fi
7
8   # Pick the right test-and-set (TAS) code for the Sun compiler.
9   # We would like to use in-line assembler, but the compiler
10   # requires *.il files to be on every compile line, making 
11   # the build system too fragile.
12   case $host in
13     sparc-*-solaris*)
14         need_tas=yes
15         tas_file=solaris_sparc.s
16     ;;
17     i?86-*-solaris*)
18         need_tas=yes
19         tas_file=solaris_x86.s
20     ;;
21   esac
22 fi
23
24 # -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things