Enable assembly on cross-compile

This commit is contained in:
Shoghi Cervantes 2014-06-30 16:33:43 +02:00
parent 308430c28d
commit 7bcc6d10b8

View File

@ -447,6 +447,12 @@ cd ..
rm -r -f ./libmcrypt rm -r -f ./libmcrypt
echo " done!" echo " done!"
if [ "$IS_CROSSCOMPILE" == "yes" ]; then
EXTRA_FLAGS=""
else
EXTRA_FLAGS="--disable-assembly"
fi
#GMP #GMP
echo -n "[GMP] downloading $GMP_VERSION..." echo -n "[GMP] downloading $GMP_VERSION..."
download_file "https://gmplib.org/download/gmp/gmp-$GMP_VERSION.tar.bz2" | tar -jx >> "$DIR/install.log" 2>&1 download_file "https://gmplib.org/download/gmp/gmp-$GMP_VERSION.tar.bz2" | tar -jx >> "$DIR/install.log" 2>&1
@ -454,7 +460,7 @@ mv gmp-$GMP_VERSION_DIR gmp
echo -n " checking..." echo -n " checking..."
cd gmp cd gmp
RANLIB=$RANLIB ./configure --prefix="$DIR/bin/php5" \ RANLIB=$RANLIB ./configure --prefix="$DIR/bin/php5" \
--disable-assembly \ $EXTRA_FLAGS \
--disable-posix-threads \ --disable-posix-threads \
--enable-static \ --enable-static \
--disable-shared \ --disable-shared \