From 7bcc6d10b81016008fbecb3dcfe180c1a425fa2f Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 30 Jun 2014 16:33:43 +0200 Subject: [PATCH] Enable assembly on cross-compile --- src/build/compile.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/build/compile.sh b/src/build/compile.sh index 7e67d574b..1d84e55eb 100755 --- a/src/build/compile.sh +++ b/src/build/compile.sh @@ -447,6 +447,12 @@ cd .. rm -r -f ./libmcrypt echo " done!" +if [ "$IS_CROSSCOMPILE" == "yes" ]; then + EXTRA_FLAGS="" +else + EXTRA_FLAGS="--disable-assembly" +fi + #GMP 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 @@ -454,7 +460,7 @@ mv gmp-$GMP_VERSION_DIR gmp echo -n " checking..." cd gmp RANLIB=$RANLIB ./configure --prefix="$DIR/bin/php5" \ ---disable-assembly \ +$EXTRA_FLAGS \ --disable-posix-threads \ --enable-static \ --disable-shared \