From bff87d19f128c5fb3eb7fe83a5ffeccb1195f5d3 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 23 Nov 2015 14:12:19 -0800 Subject: [PATCH] Remove cflags and ldflags from crt defaults After ToolchainCflags were added to soong crt no longer needs to try to recreate the bare minimum cflags for compiling for each architecture. Also always use GCC to match crt.mk Change-Id: I01a833ab70d989033c84f072e3660d060189688c --- libc/Android.bp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libc/Android.bp b/libc/Android.bp index 2e3cedb70..513da1bf3 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -1946,30 +1946,24 @@ cc_defaults { arch: { arm: { local_include_dirs: ["arch-arm/include"], - cflags: ["-mthumb-interwork"], }, arm64: { local_include_dirs: ["arch-arm64/include"], }, mips: { local_include_dirs: ["arch-mips/include"], - ldflags: ["-melf32ltsmip"], }, mips64: { local_include_dirs: ["arch-mips64/include"], - ldflags: ["-melf64ltsmip"], }, x86: { - cflags: ["-m32"], - ldflags: ["-melf_i386"], local_include_dirs: ["arch-x86/include"], }, x86_64: { - cflags: ["-m64"], - ldflags: ["-melf_x86_64"], local_include_dirs: ["arch-x86_64/include"], }, }, + clang: false, } cc_defaults {