aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLeonardo Mörlein <me@irrelefant.net>2022-08-09 21:54:04 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-08-14 00:29:20 +0200
commit6a638c134d790413ea2c6976caaa89f73375310c (patch)
tree120b36d284f6a9bca0a64f45bc5c7af582a3f84e /tools
parent1c7a1673664a9353ea7102b3271210fce252b949 (diff)
downloadupstream-6a638c134d790413ea2c6976caaa89f73375310c.tar.gz
upstream-6a638c134d790413ea2c6976caaa89f73375310c.tar.bz2
upstream-6a638c134d790413ea2c6976caaa89f73375310c.zip
pkg-config: always use correct path for pkg-config.real
Before this commit, it was assumed that pkg-config.real is in the PATH. While this was fine for the normal build workflow, this led to some issues if make TOPDIR="$(pwd)" -C "$pkgdir" compile was called manually. The command failed with Makefile:15: *** No libnl-tiny development libraries found!. Stop. make[1]: Leaving directory since pkg-config of the host system was used. After the commit, the package is built sucessfully. Signed-off-by: Leonardo Mörlein <me@irrelefant.net> (cherry picked from commit 37c0d15a8e9eb30920091bff1bf466640bc64dad)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/pkgconf/files/pkg-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pkgconf/files/pkg-config b/tools/pkgconf/files/pkg-config
index 91d144d9b1..65e0fb09f5 100755
--- a/tools/pkgconf/files/pkg-config
+++ b/tools/pkgconf/files/pkg-config
@@ -1,6 +1,6 @@
#!/bin/sh
-pkg-config.real \
+${STAGING_DIR_HOST}/bin/pkg-config.real \
--keep-system-cflags \
--keep-system-libs \
--define-variable=prefix="${STAGING_PREFIX}" \