summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-04-18 19:07:35 -0700
committerAdam Langley <agl@google.com>2015-04-18 19:09:59 -0700
commiteef60be96fb91dc632a18173b4a4f21e9813aba7 (patch)
tree3aa14dddb3cd83f10f517f1854028082621058ce /Android.mk
parentdc5ad20a799d19a4c8b2531ddae7489d87de7db2 (diff)
downloadexternal_boringssl-eef60be96fb91dc632a18173b4a4f21e9813aba7.tar.gz
external_boringssl-eef60be96fb91dc632a18173b4a4f21e9813aba7.tar.bz2
external_boringssl-eef60be96fb91dc632a18173b4a4f21e9813aba7.zip
external/boringssl: try to fix aarch64+Clang.
It appears that the version of Clang in Android doesn't support the .arch_extension directive. This change removes the .arch and .arch_extension lines (because they are triggering errors) and adds a -march option on the command line instead. The aarch64+Clang build is still broken with this change, but it's broken in binder rather than BoringSSL with it. Change-Id: I32c557bdfde4df66d26794ccdd650356f2bbaf8f
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 3fbff63..27e786d 100644
--- a/Android.mk
+++ b/Android.mk
@@ -13,6 +13,11 @@ LOCAL_MODULE := libcrypto_static
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/src/include
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/crypto-sources.mk
LOCAL_SDK_VERSION := 9
+ifeq ($(TARGET_ARCH),arm64)
+ifeq ($(USE_CLANG_PLATFORM_BUILD),true)
+LOCAL_ASFLAGS += -march=armv8-a+crypto
+endif
+endif
include $(LOCAL_PATH)/crypto-sources.mk
include $(BUILD_STATIC_LIBRARY)
@@ -24,6 +29,11 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/src/include
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/crypto-sources.mk
LOCAL_CFLAGS += -fvisibility=hidden -DBORINGSSL_SHARED_LIBRARY -DBORINGSSL_IMPLEMENTATION
LOCAL_SDK_VERSION := 9
+ifeq ($(TARGET_ARCH),arm64)
+ifeq ($(USE_CLANG_PLATFORM_BUILD),true)
+LOCAL_ASFLAGS += -march=armv8-a+crypto
+endif
+endif
include $(LOCAL_PATH)/crypto-sources.mk
include $(BUILD_SHARED_LIBRARY)