Skip to content

Commit

Permalink
am 5de2b7f: am ea9552e: am dc82c5a: am 63030fe: Merge "Use aarch64-li…
Browse files Browse the repository at this point in the history
…nux-android-4.9 for arm64 build (attempt #3)"

* commit '5de2b7ffe0e483cbe5428422dc427a6efc6523d1':
  Use aarch64-linux-android-4.9 for arm64 build (attempt #3)
  • Loading branch information
Ben Cheng authored and Android Git Automerger committed Apr 17, 2014
2 parents bd1b622 + 5de2b7f commit 52db031
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions core/combo/TARGET_linux-arm64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ endif
TARGET_NDK_GCC_VERSION := 4.8

ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),)
TARGET_GCC_VERSION := 4.8
TARGET_GCC_VERSION := 4.9
else
TARGET_GCC_VERSION := $(TARGET_GCC_VERSION_EXP)
endif
Expand Down Expand Up @@ -73,13 +73,9 @@ 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 \
Expand Down Expand Up @@ -163,6 +159,7 @@ 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)) \
Expand All @@ -186,6 +183,7 @@ 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) \
Expand All @@ -209,6 +207,7 @@ 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)) \
Expand Down

0 comments on commit 52db031

Please sign in to comment.