aboutsummaryrefslogtreecommitdiff
path: root/ports/protobuf/0001-fix-missing-export.patch
diff options
context:
space:
mode:
authorSilvio <pegua1@gmail.com>2017-06-12 17:26:30 +0200
committerSilvio <pegua1@gmail.com>2017-06-12 17:26:30 +0200
commit0e50d7019929bcf9d4fabe58f9c8b1be467f5471 (patch)
treec87d248f57a31d51148d5200de312f29b83b17b5 /ports/protobuf/0001-fix-missing-export.patch
parenta24dacfc9709787e4e2e63017056fdb2cdcc6ba5 (diff)
downloadvcpkg-0e50d7019929bcf9d4fabe58f9c8b1be467f5471.tar.gz
vcpkg-0e50d7019929bcf9d4fabe58f9c8b1be467f5471.zip
Fix protobuf dynamic build
Backport https://github.com/google/protobuf/pull/3216
Diffstat (limited to 'ports/protobuf/0001-fix-missing-export.patch')
-rw-r--r--ports/protobuf/0001-fix-missing-export.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/protobuf/0001-fix-missing-export.patch b/ports/protobuf/0001-fix-missing-export.patch
new file mode 100644
index 000000000..c7d5ff6c8
--- /dev/null
+++ b/ports/protobuf/0001-fix-missing-export.patch
@@ -0,0 +1,13 @@
+diff --git a/src/google/protobuf/generated_message_util.h b/src/google/protobuf/generated_message_util.h
+index 4417446..a7154b4 100644
+--- a/src/google/protobuf/generated_message_util.h
++++ b/src/google/protobuf/generated_message_util.h
+@@ -164,7 +164,7 @@ class ExplicitlyConstructed {
+
+ // Default empty string object. Don't use this directly. Instead, call
+ // GetEmptyString() to get the reference.
+-extern ExplicitlyConstructed< ::std::string> fixed_address_empty_string;
++LIBPROTOBUF_EXPORT extern ExplicitlyConstructed< ::std::string> fixed_address_empty_string;
+ LIBPROTOBUF_EXPORT extern ProtobufOnceType empty_string_once_init_;
+ LIBPROTOBUF_EXPORT void InitEmptyString();
+