From 7028438a759bdaa9bdfa79986c752b0fbeca1c8d Mon Sep 17 00:00:00 2001 From: Jackie Ng Date: Tue, 7 May 2019 03:46:58 +1000 Subject: [libpq]: Fix linkage with static openssl (#6309) * [libpq]: Add crypt32 to linker set. This allows libpq to link against static openssl. * Bump portfile version --- ports/libpq/CMakeLists.txt | 2 +- ports/libpq/CONTROL | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/libpq/CMakeLists.txt b/ports/libpq/CMakeLists.txt index 13c129317..3d5d6e508 100644 --- a/ports/libpq/CMakeLists.txt +++ b/ports/libpq/CMakeLists.txt @@ -141,7 +141,7 @@ endif() target_link_libraries(libpq PRIVATE OpenSSL::SSL) if(WIN32) - target_link_libraries(libpq PRIVATE ws2_32 secur32 advapi32 shell32) + target_link_libraries(libpq PRIVATE ws2_32 secur32 advapi32 shell32 crypt32) endif() target_include_directories(libpq PRIVATE src/include src/port ${CMAKE_CURRENT_BINARY_DIR}/include) set_target_properties(libpq PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON) diff --git a/ports/libpq/CONTROL b/ports/libpq/CONTROL index ac0793b13..54b2259e8 100644 --- a/ports/libpq/CONTROL +++ b/ports/libpq/CONTROL @@ -1,4 +1,4 @@ Source: libpq -Version: 9.6.1-6 +Version: 9.6.1-7 Description: The official database access API of postgresql Build-Depends: openssl, zlib (linux) -- cgit v1.2.3