aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/crc32c/0001_export_symbols.patch15
-rw-r--r--ports/crc32c/portfile.cmake1
2 files changed, 16 insertions, 0 deletions
diff --git a/ports/crc32c/0001_export_symbols.patch b/ports/crc32c/0001_export_symbols.patch
new file mode 100644
index 000000000..691e8603f
--- /dev/null
+++ b/ports/crc32c/0001_export_symbols.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 80b7d17..6ab78e2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -15,6 +15,10 @@ set(CMAKE_CXX_STANDARD 11)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ set(CMAKE_CXX_EXTENSIONS OFF)
+
++# When compiling a Windows DLL export all symbols, just like Unix shared
++# objects do.
++set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
++
+ # https://github.com/izenecloud/cmake/blob/master/SetCompilerWarningAll.cmake
+ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+ # Use the highest warning level for Visual Studio.
diff --git a/ports/crc32c/portfile.cmake b/ports/crc32c/portfile.cmake
index b8695a3c6..85883c7e2 100644
--- a/ports/crc32c/portfile.cmake
+++ b/ports/crc32c/portfile.cmake
@@ -6,6 +6,7 @@ vcpkg_from_github(
REF 1.0.6
SHA512 c30f6510d6348f15dcdddc06e375f21a69681cd615483d67628b32de747e5e98200fa49faf7e3fc30a1302991fd1f9c9a706c9eb4e13c9c6c09e74066474ea7b
HEAD_REF master
+ PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001_export_symbols.patch
)
vcpkg_configure_cmake(