]> git.ipfire.org Git - pakfire.git/commitdiff
find-requires: Make pkg-config aware of other installed .pc files
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 13:41:37 +0000 (13:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 13:41:37 +0000 (13:41 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/find-requires

index 207bcb562bdbf83ebb96b6d36fc5b213b67d3ec7..63992e2132596b6d7ae3d31e0a31a4dca0e6400e 100644 (file)
@@ -145,6 +145,9 @@ main() {
                return 1
        fi
 
+       # Tell pkg-config to search in the newly created files, too
+       export PKG_CONFIG_PATH="${buildroot}/usr/lib64/pkgconfig:${buildroot}/usr/lib/pkgconfig:${buildroot}/usr/share/pkgconfig"
+
        local file
        while read -r file; do
                # Filter out what we don't need