summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-06-10 17:06:06 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-06-10 17:06:06 -0700
commitd1175680fa9036ea776aaa4134b337e4c57c5b79 (patch)
treea8b99f86bf9f527b2694623b43e7c50eeabc5893
parent0306b8084ff855932f3bde69401bf1bbe3241b94 (diff)
parenta417d05adc329e0cda1768aed67f207bc4168998 (diff)
downloadreplicant_openssl-d1175680fa9036ea776aaa4134b337e4c57c5b79.zip
replicant_openssl-d1175680fa9036ea776aaa4134b337e4c57c5b79.tar.gz
replicant_openssl-d1175680fa9036ea776aaa4134b337e4c57c5b79.tar.bz2
am a417d05a: Merge "Don\'t use clang for unbundled build target"
* commit 'a417d05adc329e0cda1768aed67f207bc4168998': Don't use clang for unbundled build target
-rw-r--r--Crypto.mk15
-rw-r--r--Ssl.mk15
2 files changed, 24 insertions, 6 deletions
diff --git a/Crypto.mk b/Crypto.mk
index 724d4cf..7bb313b 100644
--- a/Crypto.mk
+++ b/Crypto.mk
@@ -13,7 +13,12 @@ include $(LOCAL_PATH)/android-config.mk
LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
-ifneq (,$(TARGET_BUILD_APPS))
+# If we're building an unbundled build, don't try to use clang since it's not
+# in the NDK yet. This can be removed when a clang version that is fast enough
+# in the NDK.
+ifeq (,$(TARGET_BUILD_APPS))
+LOCAL_CLANG := true
+else
LOCAL_SDK_VERSION := 9
endif
@@ -32,12 +37,16 @@ include $(LOCAL_PATH)/android-config.mk
LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
-ifneq (,$(TARGET_BUILD_APPS))
+# If we're building an unbundled build, don't try to use clang since it's not
+# in the NDK yet. This can be removed when a clang version that is fast enough
+# in the NDK.
+ifeq (,$(TARGET_BUILD_APPS))
+LOCAL_CLANG := true
+else
LOCAL_SDK_VERSION := 9
endif
LOCAL_LDFLAGS += -ldl
-LOCAL_CLANG := true
LOCAL_SRC_FILES += $(target_src_files)
LOCAL_CFLAGS += $(target_c_flags)
LOCAL_C_INCLUDES += $(target_c_includes)
diff --git a/Ssl.mk b/Ssl.mk
index 48bfbef..47ccf14 100644
--- a/Ssl.mk
+++ b/Ssl.mk
@@ -11,7 +11,12 @@ include $(LOCAL_PATH)/Ssl-config.mk
include $(CLEAR_VARS)
include $(LOCAL_PATH)/android-config.mk
-ifneq (,$(TARGET_BUILD_APPS))
+# If we're building an unbundled build, don't try to use clang since it's not
+# in the NDK yet. This can be removed when a clang version that is fast enough
+# in the NDK.
+ifeq (,$(TARGET_BUILD_APPS))
+LOCAL_CLANG := true
+else
LOCAL_SDK_VERSION := 9
endif
@@ -29,11 +34,15 @@ include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
include $(LOCAL_PATH)/android-config.mk
-ifneq (,$(TARGET_BUILD_APPS))
+# If we're building an unbundled build, don't try to use clang since it's not
+# in the NDK yet. This can be removed when a clang version that is fast enough
+# in the NDK.
+ifeq (,$(TARGET_BUILD_APPS))
+LOCAL_CLANG := true
+else
LOCAL_SDK_VERSION := 9
endif
-LOCAL_CLANG := true
LOCAL_SRC_FILES += $(target_src_files)
LOCAL_CFLAGS += $(target_c_flags)
LOCAL_C_INCLUDES += $(target_c_includes)