3 # Extra CFLAGS for code that will go into a shared library
4 if test "$GCC" = yes ; then
10 if test "$SUN_STUDIO_CC" = yes ; then
11 CC="$CC -Xa" # relaxed ISO C mode
12 CFLAGS="-v" # -v is like gcc -Wall
13 if test "$enable_debug" != yes; then
14 CFLAGS="$CFLAGS -O" # any optimization breaks debug
17 # Pick the right test-and-set (TAS) code for the Sun compiler.
18 # We would like to use in-line assembler, but the compiler
19 # requires *.il files to be on every compile line, making
20 # the build system too fragile.
24 tas_file=sunstudio_sparc.s
28 tas_file=sunstudio_x86.s