[libpq]: Fix linkage with static openssl (#6309)

* [libpq]: Add crypt32 to linker set. This allows libpq to link against static openssl.

* Bump portfile version
This commit is contained in:
Jackie Ng 2019-05-07 03:46:58 +10:00 committed by Victor Romero
parent d70c4e356c
commit 7028438a75
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)