common: better location for config.{sub,guess} + update

This commit is contained in:
q66 2019-11-18 18:29:21 +01:00 committed by Helmut Pozimski
parent 1c124092dd
commit 80b96a0ea0
3 changed files with 520 additions and 469 deletions

View file

@ -1,12 +1,14 @@
# This hook overrides config.sub and config.guess.
hook() {
local _cfgdir="${XBPS_COMMONDIR}/environment/configure/automake"
if [ -z "$build_style" -o "$build_style" = "gnu-configure" ]; then
for f in $(find ${wrksrc} -type f -name "*config*.sub"); do
cp -f ${XBPS_CROSSPFDIR}/config.sub ${f}
cp -f ${_cfgdir}/config.sub ${f}
done
for f in $(find ${wrksrc} -type f -name "*config*.guess"); do
cp -f ${XBPS_CROSSPFDIR}/config.guess ${f}
cp -f ${_cfgdir}/config.guess ${f}
done
fi
}