~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-updates

« back to all changes in this revision

Viewing changes to src/template/linux

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $PostgreSQL$
 
2
 
 
3
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
 
4
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 
5
 
 
6
# If --enable-profiling is specified, we need -DLINUX_PROFILE
 
7
PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"
 
8
 
 
9
if test "$SUN_STUDIO_CC" = "yes" ; then
 
10
  CC="$CC -Xa"                  # relaxed ISO C mode
 
11
  CFLAGS="-v"                   # -v is like gcc -Wall
 
12
  if test "$enable_debug" != yes; then
 
13
    CFLAGS="$CFLAGS -O"         # any optimization breaks debug
 
14
  fi
 
15
 
 
16
  # Pick the right test-and-set (TAS) code for the Sun compiler.
 
17
  # We would like to use in-line assembler, but the compiler
 
18
  # requires *.il files to be on every compile line, making
 
19
  # the build system too fragile.
 
20
  case $host_cpu in
 
21
    sparc)
 
22
        need_tas=yes
 
23
        tas_file=sunstudio_sparc.s
 
24
    ;;
 
25
    i?86|x86_64)
 
26
        need_tas=yes
 
27
        tas_file=sunstudio_x86.s
 
28
    ;;
 
29
  esac
 
30
fi