blob: abd34efbcfe0eaa9e556c0e00b4941922038c4ec [file] [log] [blame]
#!/bin/sh
root="$1"
if [ -z "$root" ]
then
echo "usage: $0 /path/to/sysroot [pkg-config-arguments]" >&2
exit 1
fi
rewrite=`dirname $0`/rewrite_dirs.py
shift
config_path=$root/usr/lib/pkgconfig:$root/usr/share/pkgconfig
PKG_CONFIG_PATH=$config_path pkg-config "$@" | $rewrite $root