From bc79cf9a7c39067fcbd7765ec8129b232cb35da4 Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Fri, 14 Dec 2018 23:12:44 -0500 Subject: [PATCH] Apply patch to export all symbols. --- ports/crc32c/0001_export_symbols.patch | 15 +++++++++++++++ ports/crc32c/portfile.cmake | 1 + 2 files changed, 16 insertions(+) create mode 100644 ports/crc32c/0001_export_symbols.patch diff --git a/ports/crc32c/0001_export_symbols.patch b/ports/crc32c/0001_export_symbols.patch new file mode 100644 index 0000000000..691e8603f9 --- /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 b8695a3c69..85883c7e21 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(