aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2018-12-18 16:04:02 -0800
committerGitHub <noreply@github.com>2018-12-18 16:04:02 -0800
commitbdafba739fab78c381be7cd770952a9ab4510f8f (patch)
treed1adbd675325f8ae03b422b8d30df69f15860d10
parentd2b0798854c16d8644e3ba2f69ffd3baa448f4ec (diff)
parent1a1dc41907d3edff00b8acf2f4a5d1b243cc6466 (diff)
downloadvcpkg-bdafba739fab78c381be7cd770952a9ab4510f8f.tar.gz
vcpkg-bdafba739fab78c381be7cd770952a9ab4510f8f.zip
Merge pull request #4951 from coryan/upgrade-crc32c-to-1.0.6
[crc32c] Upgrade crc32c to 1.0.6.
-rw-r--r--ports/crc32c/0001_export_symbols.patch15
-rw-r--r--ports/crc32c/CONTROL2
-rw-r--r--ports/crc32c/portfile.cmake7
3 files changed, 19 insertions, 5 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/CONTROL b/ports/crc32c/CONTROL
index 20786bad2..ada730a7d 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 a60f37671..85883c7e2 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(