From 4c2850da155948f0a0bb0724ee65b53a33f1b80e Mon Sep 17 00:00:00 2001 From: Jon Spencer Date: Sat, 8 Jun 2019 11:17:27 -0700 Subject: [PATCH 1/2] [cryptopp] fix build by disabling assembly on osx --- ports/cryptopp/portfile.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ports/cryptopp/portfile.cmake b/ports/cryptopp/portfile.cmake index b4f35e7e671742..ad6557f775f89b 100644 --- a/ports/cryptopp/portfile.cmake +++ b/ports/cryptopp/portfile.cmake @@ -26,6 +26,14 @@ vcpkg_from_github( file(COPY ${CMAKE_SOURCE_PATH}/cryptopp-config.cmake DESTINATION ${SOURCE_PATH}) file(COPY ${CMAKE_SOURCE_PATH}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) +# disable assembly on OSX to fix broken build +if(APPLE) + set(CRYPTOPP_DISABLE_ASM "ON") +else() + set(CRYPTOPP_DISABLE_ASM "OFF") +endif() + + # Dynamic linking should be avoided for Crypto++ to reduce the attack surface, # so generate a static lib for both dynamic and static vcpkg targets. # See also: @@ -40,6 +48,7 @@ vcpkg_configure_cmake( -DBUILD_STATIC=ON -DBUILD_TESTING=OFF -DBUILD_DOCUMENTATION=OFF + -DDISABLE_ASM=${CRYPTOPP_DISABLE_ASM} ) vcpkg_install_cmake() From 8e29036540d079ae706fa228a8bdf8898823878f Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sat, 8 Jun 2019 18:35:10 -0700 Subject: [PATCH 2/2] [cryptopp] Bump control version --- ports/cryptopp/CONTROL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/cryptopp/CONTROL b/ports/cryptopp/CONTROL index e3a5d79deed61b..c65a43c90563a7 100644 --- a/ports/cryptopp/CONTROL +++ b/ports/cryptopp/CONTROL @@ -1,3 +1,3 @@ Source: cryptopp -Version: 8.1.0 +Version: 8.1.0-1 Description: Crypto++ is a free C++ class library of cryptographic schemes.