Copy the bionic -fstack-protector hack into libbacktrace.

aarch64 doesn't support -fstack-protector yet.

Change-Id: Id1e589742ba074f59d3390d059248c9b371aff58
This commit is contained in:
Elliott Hughes 2014-01-14 16:44:31 -08:00
parent 21ecc30cd0
commit 1380ddcab2

View file

@ -148,6 +148,11 @@ LOCAL_CFLAGS += \
-DGTEST_OS_LINUX_ANDROID \
-DGTEST_HAS_STD_STRING \
ifeq ($(TARGET_ARCH),aarch64)
$(info TODO: $(LOCAL_PATH)/Android.mk -fstack-protector not yet available for the AArch64 toolchain)
LOCAL_CFLAGS += -fno-stack-protector
endif # aarch64
LOCAL_CONLYFLAGS += \
$(common_conlyflags) \