aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-04-13 18:17:37 +0000
committerlloyd <[email protected]>2008-04-13 18:17:37 +0000
commit29f7ede403ddbbc196a25a0786d4b93c3da0ddb6 (patch)
tree7010c9b11ee8460ee4400542fab4055c6e0a6af7
parentc6728db859c00252fbe310937b03abd76d7c8125 (diff)
Add lines for setting dll_import_flags and dll_export_flags to all the
compilers. Currently all are empty except MSVC. This is getting messy... but libtool is not great either. Maybe there should be two totally distinct builds, static and shared?
-rw-r--r--misc/config/cc/bcc3
-rw-r--r--misc/config/cc/compaq3
-rw-r--r--misc/config/cc/ekopath3
-rw-r--r--misc/config/cc/gcc3
-rw-r--r--misc/config/cc/hpcc3
-rw-r--r--misc/config/cc/icc3
-rw-r--r--misc/config/cc/kai3
-rw-r--r--misc/config/cc/mipspro3
-rw-r--r--misc/config/cc/msvc11
-rw-r--r--misc/config/cc/pgi3
-rw-r--r--misc/config/cc/sgipro643
-rw-r--r--misc/config/cc/sunwspro3
12 files changed, 42 insertions, 2 deletions
diff --git a/misc/config/cc/bcc b/misc/config/cc/bcc
index a3bf7cf6f..a6be414b7 100644
--- a/misc/config/cc/bcc
+++ b/misc/config/cc/bcc
@@ -15,6 +15,9 @@ no_debug_flags ""
lang_flags "-tWR -tWM -tWC
warning_flags "-w"
+dll_import_flags ""
+dll_export_flags ""
+
ar_command "tlib /C /P256"
makefile_style nmake
diff --git a/misc/config/cc/compaq b/misc/config/cc/compaq
index 90811b039..66d3a5219 100644
--- a/misc/config/cc/compaq
+++ b/misc/config/cc/compaq
@@ -15,6 +15,9 @@ debug_flags "-g"
no_debug_flags ""
lang_flags "-std ansi -D__USE_STD_IOSTREAM"
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<so_link_flags>
diff --git a/misc/config/cc/ekopath b/misc/config/cc/ekopath
index f8bd8f2fe..084240e03 100644
--- a/misc/config/cc/ekopath
+++ b/misc/config/cc/ekopath
@@ -18,6 +18,9 @@ ar_command "pathCC -ar -o"
so_obj_flags "-fPIC"
debug_flags "-g"
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<so_link_flags>
diff --git a/misc/config/cc/gcc b/misc/config/cc/gcc
index f11c94da4..9d85dc049 100644
--- a/misc/config/cc/gcc
+++ b/misc/config/cc/gcc
@@ -16,6 +16,9 @@ warning_flags "-W -Wall"
so_obj_flags "-fPIC"
debug_flags "-g"
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<so_link_flags>
diff --git a/misc/config/cc/hpcc b/misc/config/cc/hpcc
index 2048c5bb2..5732ba8f0 100644
--- a/misc/config/cc/hpcc
+++ b/misc/config/cc/hpcc
@@ -16,6 +16,9 @@ lang_flags "-AA -ext +eh -z"
warning_flags "" # +w
so_obj_flags "+Z"
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<mach_abi_linking>
diff --git a/misc/config/cc/icc b/misc/config/cc/icc
index 4d51b5fe9..23061add5 100644
--- a/misc/config/cc/icc
+++ b/misc/config/cc/icc
@@ -16,6 +16,9 @@ lang_flags ""
warning_flags "-w1"
so_obj_flags "-fPIC"
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<mach_opt>
diff --git a/misc/config/cc/kai b/misc/config/cc/kai
index 564ca2157..8585e54e0 100644
--- a/misc/config/cc/kai
+++ b/misc/config/cc/kai
@@ -16,6 +16,9 @@ lang_flags "-D__KAI_STRICT"
debug_flags "-g"
no_debug_flags ""
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<so_link_flags>
diff --git a/misc/config/cc/mipspro b/misc/config/cc/mipspro
index 8ceeb52b7..4fe2e5ec3 100644
--- a/misc/config/cc/mipspro
+++ b/misc/config/cc/mipspro
@@ -18,6 +18,9 @@ lang_flags "-ansi -LANG:ansi-for-init-scope=ON"
# headers <g>
#warning_flags "-fullwarn"
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<so_link_flags>
diff --git a/misc/config/cc/msvc b/misc/config/cc/msvc
index 5bcec8e23..d898ae727 100644
--- a/misc/config/cc/msvc
+++ b/misc/config/cc/msvc
@@ -8,13 +8,20 @@ add_include_dir_option "/I"
add_lib_dir_option "-L"
add_lib_option ""
-lib_opt_flags "/O2 /Ob2"
+lib_opt_flags "/O2"
check_opt_flags "/O2"
debug_flags "/Zi"
no_debug_flags ""
lang_flags "/EHsc /GR /D_CONSOLE"
warning_flags ""
-ar_command "link /lib"
+dll_import_flags ""
+dll_export_flags "__declspec(dllexport)"
+
+ar_command "link"
makefile_style nmake
+
+<so_link_flags>
+default -> "link /DLL"
+</so_link_flags>
diff --git a/misc/config/cc/pgi b/misc/config/cc/pgi
index b67edbcc3..af170b8d1 100644
--- a/misc/config/cc/pgi
+++ b/misc/config/cc/pgi
@@ -12,6 +12,9 @@ lib_opt_flags "-fast -Minline"
check_opt_flags "-fast"
so_obj_flags "-fPIC"
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<so_link_flags>
diff --git a/misc/config/cc/sgipro64 b/misc/config/cc/sgipro64
index 5bb561834..196e678e9 100644
--- a/misc/config/cc/sgipro64
+++ b/misc/config/cc/sgipro64
@@ -16,6 +16,9 @@ so_obj_flags "-KPIC"
lang_flags "-ansi -LANG:ansi-for-init-scope=ON"
warning_flags "-Wall -W"
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<so_link_flags>
diff --git a/misc/config/cc/sunwspro b/misc/config/cc/sunwspro
index 842df153f..41040c880 100644
--- a/misc/config/cc/sunwspro
+++ b/misc/config/cc/sunwspro
@@ -18,6 +18,9 @@ so_obj_flags "-KPIC"
warning_flags "+w"
lang_flags "+p -D__EXTENSIONS__"
+dll_import_flags ""
+dll_export_flags ""
+
makefile_style unix
<so_link_flags>