aboutsummaryrefslogtreecommitdiff
path: root/ports/gflags/fix-static-linking.patch
diff options
context:
space:
mode:
authorArkadiy Shapkin <arkady.shapkin@gmail.com>2017-05-06 20:53:22 +0300
committerArkadiy Shapkin <arkady.shapkin@gmail.com>2017-05-06 20:53:22 +0300
commit2b561712dcf00936cad71d9a413649758241dbc8 (patch)
treeee75e5b90b3f01cdf47a15c8fd76ab5a82cbe941 /ports/gflags/fix-static-linking.patch
parent22848e4b7e29a3a74c28afafe4d177e541ec8638 (diff)
downloadvcpkg-2b561712dcf00936cad71d9a413649758241dbc8.tar.gz
vcpkg-2b561712dcf00936cad71d9a413649758241dbc8.zip
[gflags] Fix bug with static linking
Diffstat (limited to 'ports/gflags/fix-static-linking.patch')
-rw-r--r--ports/gflags/fix-static-linking.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/gflags/fix-static-linking.patch b/ports/gflags/fix-static-linking.patch
new file mode 100644
index 000000000..0cefed2e3
--- /dev/null
+++ b/ports/gflags/fix-static-linking.patch
@@ -0,0 +1,13 @@
+diff --git a/src/gflags.h.in b/src/gflags.h.in
+index 43b3f7a..82e640f 100644
+--- a/src/gflags.h.in
++++ b/src/gflags.h.in
+@@ -86,7 +86,7 @@
+
+ // We always want to export variables defined in user code
+ #ifndef GFLAGS_DLL_DEFINE_FLAG
+-# ifdef _MSC_VER
++# if GFLAGS_IS_A_DLL && defined(_MSC_VER)
+ # define GFLAGS_DLL_DEFINE_FLAG __declspec(dllexport)
+ # else
+ # define GFLAGS_DLL_DEFINE_FLAG