summaryrefslogtreecommitdiffstats
path: root/tools/opt
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2015-05-14 11:11:09 -0700
committerStephen Hines <srhines@google.com>2015-06-08 13:59:13 -0700
commitcc2bd110643265cd06ab749ad2b3da58b4de66a3 (patch)
treea7d7216840cf2591103e6afb85787f4fda13aec6 /tools/opt
parent560a17f4e3f8019a108abb7848a4735c59a43be0 (diff)
downloadexternal_llvm-cc2bd110643265cd06ab749ad2b3da58b4de66a3.zip
external_llvm-cc2bd110643265cd06ab749ad2b3da58b4de66a3.tar.gz
external_llvm-cc2bd110643265cd06ab749ad2b3da58b4de66a3.tar.bz2
Fix Android.mk files for plugins on darwin.
Darwin uses a few different flags for this than Linux, and we missed this when we updated the test builds recently. Change-Id: I8a0e8bc18ef698a0ed933f96b2bce0653f4307e5 (cherry picked from commit 651de8d5ac0b28b10ad0259efc75cf6152dc13dc)
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/opt/Android.mk b/tools/opt/Android.mk
index 3c6a494..4c8997a 100644
--- a/tools/opt/Android.mk
+++ b/tools/opt/Android.mk
@@ -76,7 +76,11 @@ LOCAL_IS_HOST_MODULE := true
LOCAL_SRC_FILES := $(llvm_opt_SRC_FILES)
LOCAL_STATIC_LIBRARIES := $(llvm_opt_STATIC_LIBRARIES)
LOCAL_LDLIBS += -lpthread -lm -ldl
+ifeq ($(HOST_OS),darwin)
+LOCAL_LDFLAGS += -Wl,-export_dynamic
+else
LOCAL_LDFLAGS += -Wl,--export-dynamic
+endif
include $(LLVM_ROOT_PATH)/llvm.mk
include $(LLVM_HOST_BUILD_MK)