2015-03-22 19:09:14 +01:00
|
|
|
# This hook overrides config.sub and config.guess for aarch64 builds.
|
|
|
|
|
|
|
|
hook() {
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2015-05-12 22:58:24 +02:00
|
|
|
aarch64*|*-musl);;
|
2015-03-22 19:09:14 +01:00
|
|
|
*) return 0;;
|
|
|
|
esac
|
|
|
|
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}
|
|
|
|
done
|
|
|
|
for f in $(find ${wrksrc} -type f -name "*config*.guess"); do
|
|
|
|
cp -f ${XBPS_CROSSPFDIR}/config.guess ${f}
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|