3
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
4
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6
# If --enable-profiling is specified, we need -DLINUX_PROFILE
7
PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"
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
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.
23
tas_file=sunstudio_sparc.s
27
tas_file=sunstudio_x86.s