]> granicus.if.org Git - postgresql/blob - src/template/solaris
Don't zero opfuncid when reading nodes.
[postgresql] / src / template / solaris
1 if test "$SUN_STUDIO_CC" = yes ; then
2   CC="$CC -Xa"                  # relaxed ISO C mode
3   CFLAGS="-v"                   # -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_cpu in
13     sparc)
14         need_tas=yes
15         tas_file=sunstudio_sparc.s
16     ;;
17     i?86|x86_64)
18         need_tas=yes
19         tas_file=sunstudio_x86.s
20     ;;
21   esac
22 fi