diff --git a/ports/crc32c/0001_export_symbols.patch b/ports/crc32c/0001_export_symbols.patch new file mode 100644 index 00000000000..691e8603f9c --- /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/CONTROL b/ports/crc32c/CONTROL index 20786bad231..ada730a7dab 100644 --- a/ports/crc32c/CONTROL +++ b/ports/crc32c/CONTROL @@ -1,3 +1,3 @@ Source: crc32c -Version: 1.0.5-1 +Version: 1.0.6-1 Description: CRC32C implementation with support for CPU-specific acceleration instructions. diff --git a/ports/crc32c/portfile.cmake b/ports/crc32c/portfile.cmake index a60f37671f6..85883c7e21c 100644 --- a/ports/crc32c/portfile.cmake +++ b/ports/crc32c/portfile.cmake @@ -1,13 +1,12 @@ include(vcpkg_common_functions) -vcpkg_check_linkage(ONLY_STATIC_LIBRARY) - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO google/crc32c - REF 12a65bfb328fefae5c05879132676f702a3f68e8 - SHA512 610b7c54b0247edd2d37ec18db68c1f8a55b60b2fd3ddcede41e6321eb45d040f513cece493cbdc67e881065a643c4972126864811ff08b24aa7e82642e54f56 + REF 1.0.6 + SHA512 c30f6510d6348f15dcdddc06e375f21a69681cd615483d67628b32de747e5e98200fa49faf7e3fc30a1302991fd1f9c9a706c9eb4e13c9c6c09e74066474ea7b HEAD_REF master + PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001_export_symbols.patch ) vcpkg_configure_cmake(