aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libcanberra/ltdl.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libcanberra/ltdl.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libcanberra/ltdl.patch')
-rw-r--r--vcpkg/ports/libcanberra/ltdl.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/libcanberra/ltdl.patch b/vcpkg/ports/libcanberra/ltdl.patch
new file mode 100644
index 0000000..100c798
--- /dev/null
+++ b/vcpkg/ports/libcanberra/ltdl.patch
@@ -0,0 +1,29 @@
+diff --git a/configure.ac b/configure.ac
+index f68602d..a4e24b3 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -140,8 +140,12 @@ dnl We don't need any special variable for this though, since the user
+ dnl can give the proper place to find libltdl through the standard
+ dnl variables like LDFLAGS and CPPFLAGS.
+
++LTDL_INIT
++if test -n "$LTDL_LDFLAGS"; then
++ LDFLAGS="$LDFLAGS $LTDL_LDFLAGS"
++fi
+ AC_CHECK_HEADER([ltdl.h],
+- [AC_CHECK_LIB([ltdl], [lt_dladvise_init], [LIBLTDL=-lltdl], [LIBLTDL=])],
++ [AC_CHECK_LIB([ltdl], [lt_dladvise_init], [LIBLTDL="-lltdl $LTDL_LDFLAGS $lt_cv_dlopen_libs"], [LIBLTDL=])],
+ [LIBLTDL=])
+
+ AS_IF([test "x$LIBLTDL" = "x"],
+diff --git a/libcanberra.pc.in b/libcanberra.pc.in
+index 0a5c7a1..a6a989b 100644
+--- a/libcanberra.pc.in
++++ b/libcanberra.pc.in
+@@ -7,5 +7,6 @@ Name: libcanberra
+ Description: Event Sound API
+ Version: @PACKAGE_VERSION@
+ Libs: -L${libdir} -lcanberra @PTHREAD_LIBS@
++Libs.private: @LIBLTDL@
+ Cflags: -D_REENTRANT -I${includedir}
+ Requires: