Debian Codegraph @

src/template/solaris

raw
1 # src/template/solaris
2
3 # Extra CFLAGS for code that will go into a shared library
4 if test "$GCC" = yes ; then
5 CFLAGS_SL="-fPIC"
6 else
7 CFLAGS_SL="-KPIC"
8 fi
9
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
15 fi
16
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.
21 case $host_cpu in
22 sparc)
23 need_tas=yes
24 tas_file=sunstudio_sparc.s
25 ;;
26 i?86|x86_64)
27 need_tas=yes
28 tas_file=sunstudio_x86.s
29 ;;
30 esac
31 fi