summaryrefslogtreecommitdiffstats
path: root/scripts/pkg-config-wrapper
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-07-27 01:02:35 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-08-06 23:26:30 +0200
commit81d009fc269a61ce6965455cba4315ade91f983f (patch)
tree4ed95bd928d326ea43e3c741e781c74e0a125f1f /scripts/pkg-config-wrapper
parent4c54273ad54867d56d0d366fec6284630cb2cb3d (diff)
downloadptxdist-81d009fc269a61ce6965455cba4315ade91f983f.tar.gz
ptxdist-81d009fc269a61ce6965455cba4315ade91f983f.tar.xz
[ptxd_make_world_install] activate .pc file mangler, don't add sysroot in pkg-config-wrapper anymore
pkg-config's .pc file are now relocatable, the pkg-config-wrapper isn't needed anymore. Thus it's disabled now. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/pkg-config-wrapper')
-rwxr-xr-xscripts/pkg-config-wrapper26
1 files changed, 3 insertions, 23 deletions
diff --git a/scripts/pkg-config-wrapper b/scripts/pkg-config-wrapper
index 8f2dbc51a..4c18ab1cf 100755
--- a/scripts/pkg-config-wrapper
+++ b/scripts/pkg-config-wrapper
@@ -1,30 +1,10 @@
#!/bin/bash
-PKG_CONFIG_ARRAY=(`type -a -P pkg-config`)
+declare -a PKG_CONFIG_ARRAY
+PKG_CONFIG_ARRAY=( $(type -a -P pkg-config) )
PKG_CONFIG="${PKG_CONFIG_ARRAY[1]}"
-check_pipe_status() {
- for i in "${PIPESTATUS[@]}"; do
- if test $i -ne 0; then
- exit $i
- fi
- done
-}
-
-if test -z "${SYSROOT}"; then
- cat >&2 <<EOF
-
-
-pkg-config: missing \$SYSROOT environment variable"
-
-
-EOF
- exit 1
-fi
-
-export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
-export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
-unset found_var
+exec "${PKG_CONFIG}" "${@}"
for ((i = 1; i <= ${#}; i++)); do
case "${!i}" in