Skip to content

Commit

Permalink
tools: pkgconf: provide prefix for host and hostpkg stagind directory
Browse files Browse the repository at this point in the history
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: openwrt/openwrt#15134
Signed-off-by: Christian Marangi <[email protected]>
  • Loading branch information
Ansuel committed May 5, 2024
1 parent d1504a1 commit 49a64c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/pkgconf/files/pkg-config
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 49a64c9

Please sign in to comment.