[PATCH rtems-source-builder 1/2] source-builder: Handle modern pkg-config symlinks

Kinsey Moore kinsey.moore at oarcorp.com
Tue Jan 30 21:36:59 UTC 2024


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.
---
 source-builder/aarch64-linux-gnu-pkg-config | 3 +++
 source-builder/x86_64-linux-gnu-pkg-config  | 3 +++
 2 files changed, 6 insertions(+)
 create mode 100755 source-builder/aarch64-linux-gnu-pkg-config
 create mode 100755 source-builder/x86_64-linux-gnu-pkg-config

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 $*
-- 
2.39.2



More information about the devel mailing list