Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into fix_single_config2
Browse files Browse the repository at this point in the history
# Conflicts:
#	ports/libcanberra/portfile.cmake
#	versions/l-/libcanberra.json
  • Loading branch information
Neumann-A committed Oct 25, 2022
2 parents d7ff0a1 + 7ad236f commit b01a80b
Show file tree
Hide file tree
Showing 76 changed files with 542 additions and 226 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/untrustedPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
unset VCPKG_ROOT
git diff --name-status --merge-base HEAD^ HEAD --diff-filter=MAR -- '*portfile.cmake' | sed 's/[MAR]\t*//' | while read filename; do grep -q -E '(vcpkg_install_cmake|vcpkg_build_cmake|vcpkg_configure_cmake|vcpkg_fixup_cmake_targets)' "$filename" && echo " - \`$filename\`" || true; done > .github-pr.deprecated-cmake
git diff --name-status --merge-base HEAD^ HEAD --diff-filter=MAR -- '*portfile.cmake' | sed 's/[MAR]\t*//' | while read filename; do grep -q -E '(vcpkg_apply_patches|vcpkg_copy_tool_dependencies|vcpkg_build_msbuild|vcpkg_extract_source_archive_ex|vcpkg_install_cmake|vcpkg_build_cmake|vcpkg_configure_cmake|vcpkg_fixup_cmake_targets)' "$filename" && echo " - \`$filename\`" || true; done > .github-pr.deprecated-cmake
git diff --name-status --merge-base HEAD^ HEAD --diff-filter=MAR -- '*vcpkg.json' | sed 's/[MAR]\t*//' > .github-pr.changed-manifest-files
cat .github-pr.changed-manifest-files | while read filename; do grep -q -E '"license": ' "$filename" || echo " - \`$filename\`" || true; done > .github-pr.missing-license
cat .github-pr.changed-manifest-files | while read filename; do match=$(grep -oiP '"license": ".*\K(AGPL-1\.0|AGPL-3\.0|BSD-2-Clause-FreeBSD|BSD-2-Clause-NetBSD|bzip2-1\.0\.5|eCos-2\.0|GFDL-1\.1|GFDL-1\.2|GFDL-1\.3|GPL-1\.0|GPL-1\.0\+|GPL-2\.0|GPL-2\.0\+|GPL-2\.0-with-autoconf-exception|GPL-2\.0-with-bison-exception|GPL-2\.0-with-classpath-exception|GPL-2\.0-with-font-exception|GPL-2\.0-with-GCC-exception|GPL-3\.0|GPL-3\.0\+|GPL-3\.0-with-autoconf-exception|GPL-3\.0-with-GCC-exception|LGPL-2\.0|LGPL-2\.0\+|LGPL-2\.1|LGPL-2\.1\+|LGPL-3\.0|LGPL-3\.0\+|Nunit|StandardML-NJ|wxWindows)(?=[ "])' "$filename" || true); if [ ! -z "$match" ]; then echo " - \`$filename\` (has deprecated license \`$match\`)" ; fi ; done > .github-pr.deprecated-license
Expand Down Expand Up @@ -102,6 +102,10 @@ jobs:
output += " `vcpkg_build_cmake` -> `vcpkg_cmake_build` (from port `vcpkg-cmake`)\n"
output += " `vcpkg_configure_cmake` -> `vcpkg_cmake_configure` (Please remove the option `PREFER_NINJA`) (from port `vcpkg-cmake`)\n"
output += " `vcpkg_fixup_cmake_targets` -> `vcpkg_cmake_config_fixup` (from port `vcpkg-cmake-config`)\n"
output += " `vcpkg_extract_source_archive_ex` -> [`vcpkg_extract_source_archive`](https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_extract_source_archive.md)\n"
output += " `vcpkg_build_msbuild` -> [`vcpkg_install_msbuild`](https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_install_msbuild.md)\n"
output += " `vcpkg_copy_tool_dependencies` -> [`vcpkg_copy_tools`](https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_copy_tools.md)\n"
output += " `vcpkg_apply_patches` should be replaced by the `PATCHES` arguments to the \"extract\" helpers (e.g. [`vcpkg_from_github()`](https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_from_github.md))\n"
output += "\n"
output += "In the ports that use the new function, you have to add the corresponding dependencies:\n"
output += "```json\n"
Expand Down
20 changes: 8 additions & 12 deletions docs/maintainers/vcpkg_extract_source_archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ vcpkg_extract_source_archive(
[NO_REMOVE_ONE_LEVEL]
[SKIP_PATCH_CHECK]
[PATCHES <patch>...]
[REF <ref>]
[SOURCE_BASE <base>]
[BASE_DIRECTORY <relative-path> | WORKING_DIRECTORY <absolute-path>]
)
Expand Down Expand Up @@ -80,14 +79,6 @@ vcpkg_extract_source_archive(src
)
```

### REF

Pretty name for the extracted directory.

Forward slashes (`/`) will be replaced with `-`. Otherwise identical to [`SOURCE_BASE`](#source_base).

See [`WORKING_DIRECTORY`](#working_directory) for more details.

### SOURCE_BASE

Pretty name for the extracted directory.
Expand All @@ -110,12 +101,16 @@ Root folder for the extracted directory.

Defaults to `${CURRENT_BUILDTREES_DIR}/<BASE_DIRECTORY>`. Must be an absolute path.

`vcpkg_extract_source_archive` extracts the archive into `<WORKING_DIRECTORY>/<SOURCE_BASE>-<short-hash>.clean`. If the folder exists, it is deleted before extraction. Without specifying `REF`, `SOURCE_BASE`, `BASE_DIRECTORY`, or `WORKING_DIRECTORY`, this will default to `${CURRENT_BUILDTREES_DIR}/src/<archive-stem>-<short-hash>.clean`.
`vcpkg_extract_source_archive` extracts the archive into `<WORKING_DIRECTORY>/<SOURCE_BASE>-<short-hash>.clean`. If the folder exists, it is deleted before extraction. Without specifying `SOURCE_BASE`, `BASE_DIRECTORY`, or `WORKING_DIRECTORY`, this will default to `${CURRENT_BUILDTREES_DIR}/src/<archive-stem>-<short-hash>.clean`.

In [`--editable`](../commands/install.md#editable) mode:
1. No `.clean` suffix is added to the extracted folder
2. The extracted folder is not deleted. If it exists, `vcpkg_extract_source_archive` does nothing.

`<short-hash>` unambiguously identifies a particular set of archive and patch file contents.
Any modifications to the contents of the working directory after calling this function should be applied unconditionally
in order to avoid unexpected behavior in editable mode.

## Examples

```cmake
Expand All @@ -128,8 +123,9 @@ vcpkg_download_distfile(
vcpkg_extract_source_archive(
src # "src" is set to the path to the extracted files
ARCHIVE "${archive}"
REF 7.70
PATCHES 0001-disable-werror.patch
SOURCE_BASE nmap.org-nmap-7.70
PATCHES
0001-disable-werror.patch
)
vcpkg_cmake_configure(SOURCE_PATH "${src}")
```
Expand Down
13 changes: 13 additions & 0 deletions ports/catch2/no-absolute-paths.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMake/CatchMiscFunctions.cmake b/CMake/CatchMiscFunctions.cmake
index be76d8380..5a068d088 100644
--- a/CMake/CatchMiscFunctions.cmake
+++ b/CMake/CatchMiscFunctions.cmake
@@ -13,7 +13,7 @@ function(add_cxx_flag_if_supported_to_targets flagname targets)

if (HAVE_FLAG_${flag_identifier})
foreach(target ${targets})
- target_compile_options(${target} PUBLIC ${flagname})
+ target_compile_options(${target} PRIVATE ${flagname})
endforeach()
endif()
endfunction()
1 change: 1 addition & 0 deletions ports/catch2/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ vcpkg_from_github(
HEAD_REF devel
PATCHES
fix-install-path.patch
no-absolute-paths.patch # from https://github.com/catchorg/Catch2/pull/2553
)

vcpkg_cmake_configure(
Expand Down
2 changes: 1 addition & 1 deletion ports/catch2/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "catch2",
"version-semver": "3.1.1",
"port-version": 1,
"port-version": 2,
"description": "A modern, header-only test framework for unit testing.",
"homepage": "https://github.com/catchorg/Catch2",
"license": "BSL-1.0",
Expand Down
12 changes: 8 additions & 4 deletions ports/exiv2/vcpkg-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
_find_package(${ARGS})

if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
find_package(Iconv REQUIRED)
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
find_package(Iconv REQUIRED)
endif()
if(@EXIV2_ENABLE_NLS@)
find_package(Intl REQUIRED)
endif()
if(TARGET exiv2lib)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
Iconv::Iconv
)
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
Iconv::Iconv
)
endif()
if(@EXIV2_ENABLE_NLS@)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${Intl_LIBRARIES})
endif()
Expand Down
8 changes: 6 additions & 2 deletions ports/exiv2/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"name": "exiv2",
"version": "0.27.5",
"port-version": 1,
"port-version": 2,
"description": "Image metadata library and tools",
"homepage": "https://www.exiv2.org",
"license": "GPL-2.0",
"supports": "!uwp",
"dependencies": [
"libiconv",
{
"name": "libiconv",
"platform": "!windows"
},
{
"name": "vcpkg-cmake",
"host": true
Expand Down
20 changes: 20 additions & 0 deletions ports/gdk-pixbuf/loaders-cache.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build
index 54ff9dd..27f8512 100644
--- a/gdk-pixbuf/meson.build
+++ b/gdk-pixbuf/meson.build
@@ -348,7 +348,14 @@ foreach bin: gdkpixbuf_bin
set_variable(bin_name.underscorify(), bin)
endforeach

-if not meson.is_cross_build()
+if dynamic_loaders.length() == 0
+ # skip tool invocation
+ cmake = find_program('cmake', required : true)
+ loaders_cache = custom_target('loaders.cache', output: 'loaders.cache', capture: true,
+ command: [ cmake, '-E', 'echo', '# No dynamic loaders enabled at build time' ],
+ build_by_default: true)
+ loaders_dep = declare_dependency(sources: [ loaders_cache ])
+elif not meson.is_cross_build()
# The 'loaders.cache' used for testing, so we don't accidentally
# load the installed cache; we always build it by default
loaders_cache = custom_target('loaders.cache',
53 changes: 15 additions & 38 deletions ports/gdk-pixbuf/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
set(GDK_PIXBUF_VERSION 2.42)
set(GDK_PIXBUF_PATCH 9)

vcpkg_from_gitlab(
GITLAB_URL https://gitlab.gnome.org/
OUT_SOURCE_PATH SOURCE_PATH
REPO GNOME/gdk-pixbuf
REF "${GDK_PIXBUF_VERSION}.${GDK_PIXBUF_PATCH}"
REF "${VERSION}"
SHA512 3406f47b413fe3860df410a0cc0076ce47d10605b39347105690c85616739e67e5dfd0804efcad758614b0c8d1369e410b9efaa704a234bfd19686b82595b9e1
HEAD_REF master
PATCHES
fix_build_error_windows.patch
loaders-cache.patch
)

if(VCPKG_TARGET_IS_WINDOWS)
Expand All @@ -31,48 +29,27 @@ vcpkg_configure_meson(
-Dgio_sniffing=false # Perform file type detection using GIO (Unused on MacOS and Windows)
-Dbuiltin_loaders=all # since it is unclear where loadable plugins should be located;
# Comma-separated list of loaders to build into gdk-pixbuf, or "none", or "all" to build all buildable loaders into gdk-pixbuf
ADDITIONAL_NATIVE_BINARIES glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources'
glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
ADDITIONAL_CROSS_BINARIES glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources'
glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
)
ADDITIONAL_BINARIES glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources'
glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
)
vcpkg_install_meson(ADD_BIN_TO_PATH)

# Fix paths in pc file.
set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gdk-pixbuf-2.0.pc")
if(EXISTS "${_file}")
file(READ "${_file}" _contents)
string(REPLACE [[${bindir}]] "\${prefix}/../tools/${PORT}" _contents "${_contents}")
file(WRITE "${_file}" "${_contents}")
endif()
set(_file "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gdk-pixbuf-2.0.pc")
if(EXISTS "${_file}")
file(READ "${_file}" _contents)
string(REPLACE [[${bindir}]] "\${prefix}/tools/${PORT}" _contents "${_contents}")
file(WRITE "${_file}" "${_contents}")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gdk-pixbuf-2.0.pc" [[${bindir}]] "\${prefix}/tools/${PORT}")
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gdk-pixbuf-2.0.pc" [[${bindir}]] "\${prefix}/../tools/${PORT}")
endif()

vcpkg_fixup_pkgconfig()

set(TOOL_NAMES gdk-pixbuf-csource gdk-pixbuf-pixdata gdk-pixbuf-query-loaders gdk-pixbuf-thumbnailer)

set(TOOL_NAMES gdk-pixbuf-csource gdk-pixbuf-pixdata gdk-pixbuf-query-loaders)
# gdk-pixbuf-thumbnailer is not compiled for cross-compiling
set(IS_NEED_REMOVE_THUMBNAILER ${VCPKG_CROSSCOMPILING})
# This adjusting logic might be place in vcpkg_common_definitions.cmake.
if(VCPKG_TARGET_IS_WINDOWS)
if(VCPKG_TARGET_ARCHITECTURE MATCHES "(x|X)86" OR VCPKG_TARGET_ARCHITECTURE MATCHES "(amd|AMD|x|X)64")
set(IS_NEED_REMOVE_THUMBNAILER false)
endif()
# vcpkg-meson cross-build configuration differs from VCPKG_CROSSCOMPILING
if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/gdk-pixbuf-thumbnailer${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
list(APPEND TOOL_NAMES gdk-pixbuf-thumbnailer)
endif()
if(IS_NEED_REMOVE_THUMBNAILER)
list(REMOVE_ITEM TOOL_NAMES gdk-pixbuf-thumbnailer)
endif()

vcpkg_copy_pdbs()
vcpkg_copy_tools(TOOL_NAMES ${TOOL_NAMES} AUTO_CLEAN)

file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
9 changes: 6 additions & 3 deletions ports/gdk-pixbuf/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "gdk-pixbuf",
"version": "2.42.9",
"port-version": 1,
"port-version": 2,
"description": "Image loading library.",
"homepage": "https://gitlab.gnome.org/GNOME/gdk-pixbuf",
"license": "LGPL-2.1-only",
"license": "LGPL-2.1-or-later",
"dependencies": [
"gettext",
"glib",
Expand All @@ -13,7 +13,10 @@
"host": true
},
"libpng",
"tiff",
{
"name": "tiff",
"default-features": false
},
{
"name": "vcpkg-tool-meson",
"host": true
Expand Down
32 changes: 32 additions & 0 deletions ports/ktx/0003-libtool.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From 46ae9af513ad669ca4e075e5d63f6eb77e9ad2b1 Mon Sep 17 00:00:00 2001
From: 06393993 <[email protected]>
Date: Mon, 3 Oct 2022 01:41:24 -0700
Subject: [PATCH] Fix static build on Linux (#635)

On Linux, it is very likely that a GNU libtool is used, and different
parameters are needed for libtool to combine libraries.
---
CMakeLists.txt | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d19e7dbc2..2b0e31751 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -830,9 +830,15 @@ set_property(TARGET ${ASTC_LIB_TARGET} PROPERTY POSITION_INDEPENDENT_CODE ON)
if(KTX_FEATURE_STATIC_LIBRARY AND NOT WIN32 AND NOT EMSCRIPTEN)
# Make a single static library to simplify linking.
add_dependencies(ktx ${ASTC_LIB_TARGET})
+ set(LIBTOOL_ARGS)
+ if(LINUX)
+ set(LIBTOOL_ARGS ${LIBTOOL_ARGS} --mode=link --tag=CC cc)
+ endif()
+ set(LIBTOOL_ARGS ${LIBTOOL_ARGS} -static -o
+ $<TARGET_FILE:ktx> $<TARGET_FILE:ktx> $<TARGET_FILE:${ASTC_LIB_TARGET}>)
add_custom_command( TARGET ktx
POST_BUILD
- COMMAND libtool -static -o $<TARGET_FILE:ktx> $<TARGET_FILE:ktx> $<TARGET_FILE:${ASTC_LIB_TARGET}>
+ COMMAND libtool ${LIBTOOL_ARGS}
)

# Don't know libtool equivalent on Windows or Emscripten. Applications
7 changes: 4 additions & 3 deletions ports/ktx/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
set(PORT_VERSION 4.1.0-rc2)
set(PORT_VERSION 4.1.0-rc3)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KhronosGroup/KTX-Software
REF b995ac337276648afc3a5beaa6206995d2399bce #v${PORT_VERSION}
SHA512 522272226b56dce496c739f2657992e4b3e972a16f04168becf574ae6d6b15c3dec428854a5b7fee2e8167ce110cc258744778abe4b8fb20eab69c742c78b13e
REF f8dc35f0c22b38064c4d1f05830cea69c79f0d38 #v${PORT_VERSION}
SHA512 9af28506141f7f016ef6295ee980907024c591a0ba4704c90713ecdb3accbd82363b42829efadaa3897e154250123bf52152a6f0751166bea84cf6e0f4bd5e79
HEAD_REF master
FILE_DISAMBIGUATOR 1
PATCHES
0001-Use-vcpkg-zstd.patch
0002-Fix-versioning.patch
0003-libtool.patch
)

if(VCPKG_TARGET_IS_WINDOWS)
Expand Down
2 changes: 1 addition & 1 deletion ports/ktx/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ktx",
"version-semver": "4.1.0-rc2",
"version-semver": "4.1.0-rc3",
"description": "A small library of functions for writing and reading KTX files, and instantiating OpenGL®, OpenGL ES™️ and Vulkan® textures from them",
"homepage": "https://github.com/KhronosGroup/KTX-Software",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion ports/libcaer/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ vcpkg_from_gitlab(
OUT_SOURCE_PATH SOURCE_PATH
REPO dv/libcaer
REF 933dfa60a138091afb03014f8c24183bab7bba4e
SHA512 6e74e308833ca3c923b318a42bab30edb04f763cdd5b243701416b72278d7315fdd8a62ebb87b704212507f76c3e45bc9728df17ea2d1eab5133dfcf550c8c35
SHA512 f3ac74bb4cfc4077e5a226307f66a9b8b263201d2342d9e61ee98a23f95e7897895da9f148b4e910535779f779a26f5c192925386a99a70e9d22540a5421d646
HEAD_REF master
)

Expand Down
2 changes: 1 addition & 1 deletion ports/libcaer/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libcaer",
"version-date": "2022-07-25",
"port-version": 1,
"port-version": 2,
"description": "Minimal C library to access, configure and get data from neuromorphic sensors and processors.",
"homepage": "https://gitlab.com/inivation/dv/libcaer",
"license": "BSD-2-Clause",
Expand Down
14 changes: 14 additions & 0 deletions ports/libcanberra/lc-messages.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/src/sound-theme-spec.c b/src/sound-theme-spec.c
index 32affd0..371e380 100644
--- a/src/sound-theme-spec.c
+++ b/src/sound-theme-spec.c
@@ -28,6 +28,9 @@
#include <unistd.h>

#include <locale.h>
+#ifndef LC_MESSAGES
+#include <libintl.h>
+#endif

#include "sound-theme-spec.h"
#include "malloc.h"
29 changes: 29 additions & 0 deletions ports/libcanberra/ltdl.patch
Original file line number Diff line number Diff line change
@@ -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:
Loading

0 comments on commit b01a80b

Please sign in to comment.