aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/sunstudio.txt
blob: 37998e8597f698a129a385c7b58c70aeb692c96b (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
macro_name SUN_STUDIO

binary_name CC

output_to_option "-o "
add_include_dir_option -I
add_lib_dir_option -L
add_lib_option -l

compile_flags_release "-c"
compile_flags_debug "-c -g"
lib_opt_flags_release "-xO5"
app_opt_flags_release "-xO2"

shared_flags "-KPIC"
warning_flags "+w -erroff=truncwarn,wnoretvalue"
lang_flags "+p -features=extensions -D__FUNCTION__=__func__"

ar_command "CC -xar -o"

makefile_style gmake

<so_link_commands>
default -> "$(CXX) -G -h$(SONAME)"
</so_link_commands>

<mach_opt>
i386       -> "-xtarget=486"
i486       -> "-xtarget=486"
i586       -> "-xtarget=pentium"
k6         -> "-xtarget=pentium"
i686       -> "-xtarget=pentium_pro"

pentium3   -> "-xtarget=pentium3"
pentium4   -> "-xtarget=pentium4"

core2      -> "-xtarget=core2"
opteron    -> "-xtarget=opteron"
nehalem    -> "-xtarget=nehalem"

sparc32-v9 -> "-xchip=ultra -xarch=v8"

ultrasparc3 -> "-xchip=ultra3"
niagra1    -> "-xchip=ultraT1"
niagra2    -> "-xchip=ultraT2"

sparc32    -> "-xchip=ultra -xarch=SUBMODEL" sparc32-
sparc64    -> "-xchip=generic"
</mach_opt>

<mach_abi_linking>
# Needed on some Linux distros
linux      -> "-library=stlport4"

sparc64    -> "-xarch=v9"
x86_64     -> "-m64"
</mach_abi_linking>