xbps-src: hooks/script-wrapper: create a pkg-config symlink to the real wrapper.

...otherwise the envvars for cross compilation won't be set and
lots of packages are broken.
This commit is contained in:
Juan RP 2014-09-27 04:57:20 +02:00
parent 1934832e35
commit 6ab69ef143

View file

@ -77,6 +77,7 @@ export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/lib/pkgconfig"
exec /usr/bin/pkg-config "\$@"
_EOF
chmod 755 ${WRAPPERDIR}/${XBPS_CROSS_TRIPLET}-pkg-config
ln -sf ${XBPS_CROSS_TRIPLET}-pkg-config ${WRAPPERDIR}/pkg-config
}
hook() {