pkg-config: always use correct path for pkg-config.real
authorLeonardo Mörlein <me@irrelefant.net>
Tue, 9 Aug 2022 19:54:04 +0000 (21:54 +0200)
committerPaul Spooren <mail@aparcar.org>
Thu, 11 Aug 2022 10:47:31 +0000 (12:47 +0200)
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>
tools/pkgconf/files/pkg-config

index 91d144d9b139add78b7a36ca29dee81d867ba2e2..65e0fb09f540f096d71696ff65f7bdba47779dad 100755 (executable)
@@ -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}" \