pcre: fix mips* build

This commit is contained in:
Jürgen Buchmüller 2017-08-22 09:24:33 +02:00
parent 88985994c7
commit be48d3ea39

View file

@ -22,6 +22,15 @@ post_install() {
if [ "$CROSS_BUILD" ]; then
hostmakedepends="automake libtool"
pre_configure() {
# Mips needs a hint if an FPU is available or not
case "$XBPS_TARGET_MACHINE" in
mips-musl|mipsel-musl)
CFLAGS="-DSLJIT_IS_FPU_AVAILABLE=0"
;;
mipselhf-musl)
CFLAGS="-DSLJIT_IS_FPU_AVAILABLE=1"
;;
esac
autoreconf -fi
}
fi