Fix Android build on 32 bit
authorest31 <MTest31@outlook.com>
Sun, 22 Mar 2015 23:46:55 +0000 (00:46 +0100)
committerCraig Robbins <kde.psych@gmail.com>
Mon, 23 Mar 2015 04:11:39 +0000 (14:11 +1000)
Remove the --system=linux-x86_64 which isn't neccessary on 64 bit,
as, when given no --system parameter, the standalone-toolchain.sh script
figures out the platform on itself. Naturally, the hardcoded setting broke
android building on 32 bit systems.

build/android/Makefile

index 394b3a5e3eb25eac176edd73a529a83da0021467..43ce247126d80457f4b305e1e1af05300bb12765 100644 (file)
@@ -311,7 +311,7 @@ $(OPENSSL_LIB): $(OPENSSL_TIMESTAMP)
        export TOOLCHAIN=/tmp/ndk-${TARGET_HOST}-openssl;                          \
        ${ANDROID_NDK}/build/tools/make-standalone-toolchain.sh                    \
        --toolchain=${TARGET_TOOLCHAIN}${COMPILER_VERSION}                         \
-       --install-dir=$${TOOLCHAIN} --system=linux-x86_64;                         \
+       --install-dir=$${TOOLCHAIN};                                               \
        export PATH="$${TOOLCHAIN}/bin:$${PATH}";                                  \
        CC=${CROSS_PREFIX}gcc ./Configure android-${TARGET_ARCH} no-idea no-seed -no-sha0 -DL_ENDIAN;\
        CC=${CROSS_PREFIX}gcc ANDROID_DEV=/tmp/ndk-${TARGET_HOST} make build_libs; \
@@ -359,7 +359,7 @@ $(LEVELDB_LIB): $(LEVELDB_TIMESTAMP)
        export TOOLCHAIN=/tmp/ndk-${TARGET_HOST}-leveldb;                          \
        ${ANDROID_NDK}/build/tools/make-standalone-toolchain.sh                    \
        --toolchain=${TARGET_TOOLCHAIN}${COMPILER_VERSION}                         \
-       --install-dir=$${TOOLCHAIN} --system=linux-x86_64;                         \
+       --install-dir=$${TOOLCHAIN};                                               \
        export PATH="$${TOOLCHAIN}/bin:$${PATH}";                                  \
        export CC=${CROSS_PREFIX}gcc;                                              \
        export CXX=${CROSS_PREFIX}g++;                                             \
@@ -518,7 +518,7 @@ $(CURL_LIB): $(CURL_TIMESTAMP) $(OPENSSL_LIB)
        export TOOLCHAIN=/tmp/ndk-${TARGET_HOST}-curl;                             \
        ${ANDROID_NDK}/build/tools/make-standalone-toolchain.sh                    \
        --toolchain=${TARGET_TOOLCHAIN}${COMPILER_VERSION}                         \
-       --install-dir=$${TOOLCHAIN} --system=linux-x86_64;                         \
+       --install-dir=$${TOOLCHAIN};                                               \
        export PATH="$${TOOLCHAIN}/bin:$${PATH}";                                  \
        export CC=${CROSS_PREFIX}gcc;                                              \
        export CXX=${CROSS_PREFIX}g++;                                             \