vcpkg/ports/wxwidgets/libsecret-link-dirs.patch

16 lines
812 B
Diff

diff --git a/build/cmake/lib/base/CMakeLists.txt b/build/cmake/lib/base/CMakeLists.txt
index 6eed902..ffd095a 100644
--- a/build/cmake/lib/base/CMakeLists.txt
+++ b/build/cmake/lib/base/CMakeLists.txt
@@ -46,6 +46,10 @@ if(UNIX AND wxUSE_SECRETSTORE)
# requiring it being installed on the target system.
list(REMOVE_ITEM LIBSECRET_LIBRARIES secret-1)
wx_lib_link_libraries(wxbase PRIVATE ${LIBSECRET_LIBRARIES})
+ # LIBSECRET_LIBRARIES may include transitive deps (gcrypt, gpg-error) that
+ # aren't in the default linker search path; propagate the -L dirs
+ # pkg-config reported so downstream links (wxrc etc.) can find them.
+ wx_lib_link_directories(wxbase PUBLIC ${LIBSECRET_LIBRARY_DIRS})
endif()
if(wxUSE_LIBICONV)
wx_lib_include_directories(wxbase ${ICONV_INCLUDE_DIR})