summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2024-01-30 14:02:03 -0600
committerJoel Sherrill <joel@rtems.org>2024-02-04 22:54:48 -0600
commit4dad5b3e5ff9f2fdf9e66fcda171604f1a319eed (patch)
tree86af697783c6acddd121b3c8598327960769bf45
parentbare/config/qemu-5.2.0: Add gdbus-codegen patch (diff)
downloadrtems-source-builder-4dad5b3e5ff9f2fdf9e66fcda171604f1a319eed.tar.bz2
source-builder: Handle modern pkg-config symlinks
Modern versions of pkg-config include new architecture-specific symlinks that are sometimes checked before "pkg-config". This causes builds to detect the system pkg-config instead of the local overridden pkg-config and fail to build properly. This overrides those new symlinks to restore build functionality.
-rwxr-xr-xsource-builder/aarch64-linux-gnu-pkg-config3
-rwxr-xr-xsource-builder/x86_64-linux-gnu-pkg-config3
2 files changed, 6 insertions, 0 deletions
diff --git a/source-builder/aarch64-linux-gnu-pkg-config b/source-builder/aarch64-linux-gnu-pkg-config
new file mode 100755
index 0000000..09d7b16
--- /dev/null
+++ b/source-builder/aarch64-linux-gnu-pkg-config
@@ -0,0 +1,3 @@
+#! /bin/sh
+base=$(dirname $0)
+exec ${base}/pkg-config $*
diff --git a/source-builder/x86_64-linux-gnu-pkg-config b/source-builder/x86_64-linux-gnu-pkg-config
new file mode 100755
index 0000000..09d7b16
--- /dev/null
+++ b/source-builder/x86_64-linux-gnu-pkg-config
@@ -0,0 +1,3 @@
+#! /bin/sh
+base=$(dirname $0)
+exec ${base}/pkg-config $*