[openwrt/openwrt] tools: pkgconf: provide prefix for host and hostpkg stagind directory
LEDE Commits
lede-commits at lists.infradead.org
Sun May 5 08:22:34 PDT 2024
ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/49a64c954109a7af9e64e3ea8d84ae5b3004435f
commit 49a64c954109a7af9e64e3ea8d84ae5b3004435f
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Thu Apr 11 17:02:45 2024 +0200
tools: pkgconf: provide prefix for host and hostpkg stagind directory
Some package might require to fix their pkg-config file to point to host
or hostpkg file. This is the case for glib2 library that provides with
pkg-config variables, tools to generates files from xml. Those tools
should use the host binary instead of the targets one to correctly build
packages that makes use of such tools.
Link: https://github.com/openwrt/openwrt/pull/15134
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
tools/pkgconf/files/pkg-config | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/pkgconf/files/pkg-config b/tools/pkgconf/files/pkg-config
index 65e0fb09f5..2e4dac9073 100755
--- a/tools/pkgconf/files/pkg-config
+++ b/tools/pkgconf/files/pkg-config
@@ -4,6 +4,8 @@ ${STAGING_DIR_HOST}/bin/pkg-config.real \
--keep-system-cflags \
--keep-system-libs \
--define-variable=prefix="${STAGING_PREFIX}" \
+--define-variable=prefix_host="${STAGING_DIR_HOST}" \
+--define-variable=prefix_hostpkg="${STAGING_DIR_HOSTPKG}" \
--define-variable=exec_prefix="${STAGING_PREFIX}" \
--define-variable=bindir="${STAGING_PREFIX}/bin" \
$PKG_CONFIG_EXTRAARGS "$@"
More information about the lede-commits
mailing list