diff options
author | Ben Cheng <bccheng@android.com> | 2014-04-11 23:36:25 +0000 |
---|---|---|
committer | Ben Cheng <bccheng@android.com> | 2014-04-11 23:36:25 +0000 |
commit | 38fef38c404fb06869e02567ad5022d77365d745 (patch) | |
tree | e68f65ed5ec1e7b44ffb491e9a0a3ae7a0662e8d /core/combo/TARGET_linux-arm64.mk | |
parent | 1ae9b213eb5648205223e4b825f4c808a5d2ace8 (diff) | |
download | build-38fef38c404fb06869e02567ad5022d77365d745.zip build-38fef38c404fb06869e02567ad5022d77365d745.tar.gz build-38fef38c404fb06869e02567ad5022d77365d745.tar.bz2 |
Revert "Use aarch64-linux-android-4.9 for arm64 build (attempt #2)"
This reverts commit 1ae9b213eb5648205223e4b825f4c808a5d2ace8.
Sigh... new warnings found by 4.9 break checkbuild.
Change-Id: I46ad622fa9c8ac4fb1e15e29bb400634abc5914c
Diffstat (limited to 'core/combo/TARGET_linux-arm64.mk')
-rw-r--r-- | core/combo/TARGET_linux-arm64.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/combo/TARGET_linux-arm64.mk b/core/combo/TARGET_linux-arm64.mk index 070c920..e894f6d 100644 --- a/core/combo/TARGET_linux-arm64.mk +++ b/core/combo/TARGET_linux-arm64.mk @@ -38,7 +38,7 @@ endif TARGET_NDK_GCC_VERSION := 4.8 ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),) -TARGET_GCC_VERSION := 4.9 +TARGET_GCC_VERSION := 4.8 else TARGET_GCC_VERSION := $(TARGET_GCC_VERSION_EXP) endif @@ -73,9 +73,13 @@ TARGET_GLOBAL_CFLAGS += \ android_config_h := $(call select-android-config-h,linux-arm64) +# HACK: globally disable -fstack-protector until the toolchain supports it +TARGET_GLOBAL_UNSUPPORTED_CFLAGS := \ + -fstack-protector \ + -fstack-protector-all \ + TARGET_GLOBAL_CFLAGS += \ -fpic -fPIE \ - -fstack-protector \ -ffunction-sections \ -fdata-sections \ -funwind-tables \ @@ -158,7 +162,6 @@ TARGET_CUSTOM_LD_COMMAND := true define transform-o-to-shared-lib-inner $(hide) $(PRIVATE_CXX) \ -nostdlib -Wl,-soname,$(notdir $@) \ - -Wl,--gc-sections \ -Wl,-shared,-Bsymbolic \ $(PRIVATE_TARGET_GLOBAL_LD_DIRS) \ $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_SO_O)) \ @@ -182,7 +185,6 @@ endef define transform-o-to-executable-inner $(hide) $(PRIVATE_CXX) -nostdlib -Bdynamic -fPIE -pie \ -Wl,-dynamic-linker,/system/bin/linker64 \ - -Wl,--gc-sections \ -Wl,-z,nocopyreloc \ $(PRIVATE_TARGET_GLOBAL_LD_DIRS) \ -Wl,-rpath-link=$(PRIVATE_TARGET_OUT_INTERMEDIATE_LIBRARIES) \ @@ -206,7 +208,6 @@ endef define transform-o-to-static-executable-inner $(hide) $(PRIVATE_CXX) -nostdlib -Bstatic \ - -Wl,--gc-sections \ -o $@ \ $(PRIVATE_TARGET_GLOBAL_LD_DIRS) \ $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_STATIC_O)) \ |