hooks/pre-configure/02-script-wrapper.sh: add wrapper for install(1) to prevent stripping.

This commit is contained in:
Christian Neukirchen 2015-04-01 13:43:57 +02:00
parent 5b845c0ac7
commit e02a68f524
2 changed files with 51 additions and 3 deletions

View file

@ -79,10 +79,18 @@ _EOF
ln -sf ${XBPS_CROSS_TRIPLET}-pkg-config ${XBPS_WRAPPERDIR}/pkg-config
}
install_wrapper() {
install -m0755 ${XBPS_COMMONDIR}/hooks/pre-configure/install-wrapper \
${XBPS_WRAPPERDIR}/install
}
hook() {
export PATH="$XBPS_WRAPPERDIR:$PATH"
install_wrapper
[ -z "$CROSS_BUILD" ] && return 0
# create wrapers
pkgconfig_wrapper
generic_wrapper icu-config
generic_wrapper libgcrypt-config
@ -112,6 +120,4 @@ hook() {
generic_wrapper3 libetpan-config
python_wrapper python-config 2.7
python_wrapper python3.4-config 3.4m
export PATH="$XBPS_WRAPPERDIR:$PATH"
}