aboutsummaryrefslogtreecommitdiffstats
path: root/misc/config/cc/msvc
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 /misc/config/cc/msvc
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?
Diffstat (limited to 'misc/config/cc/msvc')
-rw-r--r--misc/config/cc/msvc11
1 files changed, 9 insertions, 2 deletions
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>