diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-08 19:45:37 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-09 09:22:39 +0100 |
commit | 36806dc1f4093bfaff258865bdf97f32e7a2f8e6 (patch) | |
tree | d21c9d75a6c34c3a0511a6938d17e671c4185ea6 /scripts/pkg-config-wrapper | |
parent | 9bd2c40818f4a37beae2234260ba396ddc4d55bc (diff) | |
download | ptxdist-36806dc1f4093bfaff258865bdf97f32e7a2f8e6.tar.gz ptxdist-36806dc1f4093bfaff258865bdf97f32e7a2f8e6.tar.xz |
pkg-config-wrapper: make sure PKG_CONFIG_SYSROOT_DIR is not set
Some packages try to be clever and set it but it interferes with our own
filter magic.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/pkg-config-wrapper')
-rwxr-xr-x | scripts/pkg-config-wrapper | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/pkg-config-wrapper b/scripts/pkg-config-wrapper index 77dc26c5c..a75a0a542 100755 --- a/scripts/pkg-config-wrapper +++ b/scripts/pkg-config-wrapper @@ -23,6 +23,9 @@ system_incpath=( "${libdir[@]/%//../../include}" "${libdir[@]/%//../include}" "/ orig_IFS="${IFS}" IFS=":" +# make sure no other sysroot is set +# it conflicts with our own sysroot handling +unset PKG_CONFIG_SYSROOT_DIR # default pkg-config searchs export PKG_CONFIG_LIBDIR="${libdir[*]}" # default search path that will be dropped from --cflags |