~ubuntu-branches/debian/sid/postgresql-9.3/sid

« back to all changes in this revision

Viewing changes to src/template/solaris

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 05:39:52 UTC
  • Revision ID: package-import@ubuntu.com-20130508053952-1j7uilp7mjtrvq8q
Tags: upstream-9.3~beta1
ImportĀ upstreamĀ versionĀ 9.3~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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