aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-13 03:18:30 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-13 03:18:30 -0500
commit02da661244ab0cb663d753f80e2e18d9a2629c2e (patch)
tree286af1b4da367a59f74a9f7af2af2fd0b34ce364
parentcross-pkg-config: drop old version check (diff)
downloadcrossdev-02da661244ab0cb663d753f80e2e18d9a2629c2e.tar.gz
crossdev-02da661244ab0cb663d753f80e2e18d9a2629c2e.tar.bz2
crossdev-02da661244ab0cb663d753f80e2e18d9a2629c2e.zip
cross-pkg-config: allow basic options for $1
Tools sometimes probe pkg-config to see if it itself works. Allow those basic options through. We specifically don't parse the full command line to keep the code simple, faster, and to avoid dealing with ugly edge cases (like `pkg-config -- --help`). Closes: https://bugs.gentoo.org/830840 Reported-by: Alexandra Parker <alex.iris.parker@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xwrappers/cross-pkg-config11
1 files changed, 11 insertions, 0 deletions
diff --git a/wrappers/cross-pkg-config b/wrappers/cross-pkg-config
index d51edd2..62f0dfa 100755
--- a/wrappers/cross-pkg-config
+++ b/wrappers/cross-pkg-config
@@ -21,6 +21,17 @@ error() {
}
#
+# Allow very basic checks. This is not very sophisticated, but should get the
+# job done, practically speaking.
+#
+
+case $1 in
+--about|--help|--version)
+ exec pkg-config "$@"
+ ;;
+esac
+
+#
# Sanity/distro checks
#