File: linux

package info (click to toggle)
postgresql-9.6 9.6.15-0+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 129,420 kB
  • sloc: ansic: 742,939; sql: 67,276; xml: 30,901; yacc: 30,445; perl: 16,293; lex: 7,764; sh: 5,290; makefile: 4,780; python: 112; asm: 65; sed: 15
file content (37 lines) | stat: -rw-r--r-- 980 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# src/template/linux

# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"

# If --enable-profiling is specified, we need -DLINUX_PROFILE
PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"

if test "$SUN_STUDIO_CC" = "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

  # Pick the right test-and-set (TAS) code for the Sun compiler.
  # We would like to use in-line assembler, but the compiler
  # requires *.il files to be on every compile line, making
  # the build system too fragile.
  case $host_cpu in
    sparc)
	need_tas=yes
	tas_file=sunstudio_sparc.s
    ;;
    i?86|x86_64)
	need_tas=yes
	tas_file=sunstudio_x86.s
    ;;
  esac
fi

# force use of POSIX instead of SysV semaphores on hurd-i386
case $(dpkg-architecture -qDEB_HOST_ARCH) in
	hurd*)
		USE_UNNAMED_POSIX_SEMAPHORES=1
		;;
esac