diff --git a/core/clang/TARGET_arm.mk b/core/clang/TARGET_arm.mk index 595fb562b..575b9f941 100644 --- a/core/clang/TARGET_arm.mk +++ b/core/clang/TARGET_arm.mk @@ -53,3 +53,4 @@ $(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_LDFLAGS := \ $(CLANG_CONFIG_arm_TARGET_EXTRA_LDFLAGS) $(clang_2nd_arch_prefix)RS_TRIPLE := armv7-none-linux-gnueabi +$(clang_2nd_arch_prefix)RS_TRIPLE_CFLAGS := diff --git a/core/clang/TARGET_arm64.mk b/core/clang/TARGET_arm64.mk index 98bbeb234..02643214b 100644 --- a/core/clang/TARGET_arm64.mk +++ b/core/clang/TARGET_arm64.mk @@ -51,3 +51,4 @@ CLANG_TARGET_GLOBAL_LDFLAGS := \ $(CLANG_CONFIG_arm64_TARGET_EXTRA_LDFLAGS) RS_TRIPLE := aarch64-linux-android +RS_TRIPLE_CFLAGS := diff --git a/core/clang/TARGET_mips.mk b/core/clang/TARGET_mips.mk index 0107519ce..011c2a607 100644 --- a/core/clang/TARGET_mips.mk +++ b/core/clang/TARGET_mips.mk @@ -50,4 +50,5 @@ $(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_LDFLAGS := \ $(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_LDFLAGS)) \ $(CLANG_CONFIG_mips_TARGET_EXTRA_LDFLAGS) -$(clang_2nd_arch_prefix)RS_TRIPLE := mipsel-unknown-linux +$(clang_2nd_arch_prefix)RS_TRIPLE := armv7-none-linux-gnueabi +$(clang_2nd_arch_prefix)RS_TRIPLE_CFLAGS := diff --git a/core/clang/TARGET_mips64.mk b/core/clang/TARGET_mips64.mk index b2e536c2a..a5e29d29a 100644 --- a/core/clang/TARGET_mips64.mk +++ b/core/clang/TARGET_mips64.mk @@ -50,4 +50,5 @@ CLANG_TARGET_GLOBAL_LDFLAGS := \ $(call convert-to-clang-flags,$(TARGET_GLOBAL_LDFLAGS)) \ $(CLANG_CONFIG_mips64_TARGET_EXTRA_LDFLAGS) -RS_TRIPLE := mips64el-unknown-linux +RS_TRIPLE := aarch64-linux-android +RS_TRIPLE_CFLAGS := diff --git a/core/clang/TARGET_x86.mk b/core/clang/TARGET_x86.mk index 70cb2525b..da7a22382 100644 --- a/core/clang/TARGET_x86.mk +++ b/core/clang/TARGET_x86.mk @@ -52,4 +52,5 @@ $(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_LDFLAGS := \ $(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_LDFLAGS)) \ $(CLANG_CONFIG_x86_TARGET_EXTRA_LDFLAGS) -$(clang_2nd_arch_prefix)RS_TRIPLE := i686-unknown-linux +$(clang_2nd_arch_prefix)RS_TRIPLE := armv7-none-linux-gnueabi +$(clang_2nd_arch_prefix)RS_TRIPLE_CFLAGS := -D__i386__ diff --git a/core/clang/TARGET_x86_64.mk b/core/clang/TARGET_x86_64.mk index 14944bd3f..cc1f59ff8 100644 --- a/core/clang/TARGET_x86_64.mk +++ b/core/clang/TARGET_x86_64.mk @@ -50,4 +50,5 @@ CLANG_TARGET_GLOBAL_LDFLAGS := \ $(call convert-to-clang-flags,$(TARGET_GLOBAL_LDFLAGS)) \ $(CLANG_CONFIG_x86_64_TARGET_EXTRA_LDFLAGS) -RS_TRIPLE := x86_64-unknown-linux +RS_TRIPLE := aarch64-linux-android +RS_TRIPLE_CFLAGS := -D__x86_64__