mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Apparently, on some glibc versions this causes warnings when optimization is not enabled. Altogether, there appear to be too many incompatibilities surrounding this.
31 lines
822 B
Plaintext
31 lines
822 B
Plaintext
# 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
|