aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-10 00:03:10 +0000
committerlloyd <[email protected]>2010-06-10 00:03:10 +0000
commit45109c9d7a4c43743891189a1b3691d7925fa0d3 (patch)
treecf67fd035557ba0eeab90e477c3dcff3d553b49f /src
parent3cb071d6a049ad5f8108e054a19f3bf0ceddb7b6 (diff)
Fix export/import flags for VC DLLs
Diffstat (limited to 'src')
-rw-r--r--src/build-data/buildh.in2
-rw-r--r--src/build-data/cc/msvc.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in
index e4ab0f44b..68e0a9617 100644
--- a/src/build-data/buildh.in
+++ b/src/build-data/buildh.in
@@ -9,7 +9,7 @@
#define BOTAN_VERSION_PATCH %{version_patch}
#ifndef BOTAN_DLL
- #define BOTAN_DLL %{dll_export_flags}
+ #define BOTAN_DLL %{dll_import_flags}
#endif
/* Chunk sizes */
diff --git a/src/build-data/cc/msvc.txt b/src/build-data/cc/msvc.txt
index 68e4517f8..e8ea54fb4 100644
--- a/src/build-data/cc/msvc.txt
+++ b/src/build-data/cc/msvc.txt
@@ -15,8 +15,8 @@ no_debug_flags ""
lang_flags "/EHsc /GR /D_CONSOLE"
warning_flags ""
+shared_flags "/DBOTAN_DLL=__declspec(dllexport)"
dll_import_flags "__declspec(dllimport)"
-dll_export_flags "__declspec(dllexport)"
ar_command "lib"