aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/fdk-aac/cxx-linkage-pkgconfig.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/fdk-aac/cxx-linkage-pkgconfig.patch')
-rw-r--r--vcpkg/ports/fdk-aac/cxx-linkage-pkgconfig.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/fdk-aac/cxx-linkage-pkgconfig.patch b/vcpkg/ports/fdk-aac/cxx-linkage-pkgconfig.patch
new file mode 100644
index 0000000..4f8bdd1
--- /dev/null
+++ b/vcpkg/ports/fdk-aac/cxx-linkage-pkgconfig.patch
@@ -0,0 +1,20 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4db8c7e..da3297c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -528,6 +528,15 @@ if(FDK_AAC_INSTALL_PKGCONFIG_MODULE)
+ set(LIBS_PUBLIC "-lm")
+ endif()
+ endif()
++ foreach(lib IN LISTS CMAKE_CXX_IMPLICIT_LINK_LIBRARIES)
++ if(lib IN_LIST CMAKE_C_IMPLICIT_LINK_LIBRARIES)
++ continue()
++ elseif(EXISTS "${lib}")
++ string(APPEND LIBS_PRIVATE " ${CMAKE_LINK_LIBRARY_FILE_FLAG}${lib}")
++ else()
++ string(APPEND LIBS_PRIVATE " ${CMAKE_LINK_LIBRARY_FLAG}${lib}")
++ endif()
++ endforeach()
+ configure_file(fdk-aac.pc.in fdk-aac.pc @ONLY)
+ install(
+ FILES