aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/sunstudio.txt
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-03 14:53:29 +0000
committerlloyd <[email protected]>2010-09-03 14:53:29 +0000
commit36575f0da3cb879816b1dc7e696a67a7c9c03c72 (patch)
tree5b59f5504679987cdeba7b71999013ccbb296f74 /src/build-data/cc/sunstudio.txt
parent6a7604d32b825530c5abbdae06abc82a5c5210da (diff)
The modern name for Sun Workshop Pro is Sun Studio
Diffstat (limited to 'src/build-data/cc/sunstudio.txt')
-rw-r--r--src/build-data/cc/sunstudio.txt44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/build-data/cc/sunstudio.txt b/src/build-data/cc/sunstudio.txt
new file mode 100644
index 000000000..80fe55951
--- /dev/null
+++ b/src/build-data/cc/sunstudio.txt
@@ -0,0 +1,44 @@
+macro_name SUN_STUDIO
+
+binary_name CC
+
+compile_option "-c "
+output_to_option "-o "
+add_include_dir_option -I
+add_lib_dir_option -L
+add_lib_option -l
+
+# The compiler supports up to -xO5, but anything higher than -xO2 causes
+# incorrect results, infinite loops, other badness. :(
+lib_opt_flags "-xO2"
+check_opt_flags "-xO2"
+debug_flags -g
+no_debug_flags ""
+shared_flags "-KPIC"
+warning_flags "+w"
+lang_flags "+p -D__EXTENSIONS__"
+
+makefile_style unix
+
+<so_link_flags>
+default -> "$(CXX) -G -h$(SONAME)"
+</so_link_flags>
+
+<mach_opt>
+i386 -> "-xtarget=486"
+i486 -> "-xtarget=486"
+i586 -> "-xtarget=pentium"
+i686 -> "-xtarget=pentium_pro"
+pentium4 -> "-xtarget=pentium_pro"
+k6 -> "-xtarget=pentium"
+
+sparc32-v9 -> "-xchip=ultra -xarch=v8"
+
+sparc32 -> "-xchip=ultra -xarch=SUBMODEL" sparc32-
+sparc64 -> "-xchip=SUBMODEL" sparc64-
+</mach_opt>
+
+<mach_abi_linking>
+sparc64 -> "-xarch=v9"
+amd64 -> "-m64"
+</mach_abi_linking>