Fix Android x86 and x86-64 cross-compilesexit
parent
5cee4a6573
commit
65963c5504
|
|
@ -157,14 +157,14 @@ case "$THE_ARCH" in
|
||||||
TOOLCHAIN_NAME="i686-linux-android"
|
TOOLCHAIN_NAME="i686-linux-android"
|
||||||
AOSP_ABI="x86"
|
AOSP_ABI="x86"
|
||||||
AOSP_ARCH="arch-x86"
|
AOSP_ARCH="arch-x86"
|
||||||
AOSP_FLAGS="-mtune=intel -mssse3 -mfpmath=sse -funwind-tables -fexceptions -frtti"
|
AOSP_FLAGS="-mtune=intel -mssse3 -mfpmath=sse -DCRYPTOPP_DISABLE_SSE4 -DCRYPTOPP_DISABLE_CLMUL -DCRYPTOPP_DISABLE_AES -DCRYPTOPP_DISABLE_SHA -funwind-tables -fexceptions -frtti"
|
||||||
;;
|
;;
|
||||||
x86_64|x64)
|
x86_64|x64)
|
||||||
TOOLCHAIN_ARCH="x86_64"
|
TOOLCHAIN_ARCH="x86_64"
|
||||||
TOOLCHAIN_NAME="x86_64-linux-android"
|
TOOLCHAIN_NAME="x86_64-linux-android"
|
||||||
AOSP_ABI="x86_64"
|
AOSP_ABI="x86_64"
|
||||||
AOSP_ARCH="arch-x86_64"
|
AOSP_ARCH="arch-x86_64"
|
||||||
AOSP_FLAGS="-march=x86-64 -msse4.2 -mpopcnt -mtune=intel -funwind-tables -fexceptions -frtti"
|
AOSP_FLAGS="-march=x86-64 -msse4.2 -mpopcnt -mtune=intel -DCRYPTOPP_DISABLE_CLMUL -DCRYPTOPP_DISABLE_AES -DCRYPTOPP_DISABLE_SHA -funwind-tables -fexceptions -frtti"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "ERROR: Unknown architecture $1"
|
echo "ERROR: Unknown architecture $1"
|
||||||
|
|
|
||||||
|
|
@ -150,14 +150,14 @@ case "$THE_ARCH" in
|
||||||
TOOLCHAIN_NAME="i686-linux-android"
|
TOOLCHAIN_NAME="i686-linux-android"
|
||||||
AOSP_ABI="x86"
|
AOSP_ABI="x86"
|
||||||
AOSP_ARCH="arch-x86"
|
AOSP_ARCH="arch-x86"
|
||||||
AOSP_FLAGS="-mtune=intel -mssse3 -mfpmath=sse -funwind-tables -fexceptions -frtti"
|
AOSP_FLAGS="-mtune=intel -mssse3 -mfpmath=sse -DCRYPTOPP_DISABLE_SSE4 -DCRYPTOPP_DISABLE_CLMUL -DCRYPTOPP_DISABLE_AES -DCRYPTOPP_DISABLE_SHA -funwind-tables -fexceptions -frtti"
|
||||||
;;
|
;;
|
||||||
x86_64|x64)
|
x86_64|x64)
|
||||||
TOOLCHAIN_ARCH="x86_64"
|
TOOLCHAIN_ARCH="x86_64"
|
||||||
TOOLCHAIN_NAME="x86_64-linux-android"
|
TOOLCHAIN_NAME="x86_64-linux-android"
|
||||||
AOSP_ABI="x86_64"
|
AOSP_ABI="x86_64"
|
||||||
AOSP_ARCH="arch-x86_64"
|
AOSP_ARCH="arch-x86_64"
|
||||||
AOSP_FLAGS="-march=x86-64 -msse4.2 -mpopcnt -mtune=intel -funwind-tables -fexceptions -frtti"
|
AOSP_FLAGS="-march=x86-64 -msse4.2 -mpopcnt -mtune=intel -DCRYPTOPP_DISABLE_CLMUL -DCRYPTOPP_DISABLE_AES -DCRYPTOPP_DISABLE_SHA -funwind-tables -fexceptions -frtti"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "ERROR: Unknown architecture $1"
|
echo "ERROR: Unknown architecture $1"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue