From cc2bd110643265cd06ab749ad2b3da58b4de66a3 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Thu, 14 May 2015 11:11:09 -0700 Subject: 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) --- tools/bugpoint/Android.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/bugpoint/Android.mk') diff --git a/tools/bugpoint/Android.mk b/tools/bugpoint/Android.mk index 752972a..393851f 100644 --- a/tools/bugpoint/Android.mk +++ b/tools/bugpoint/Android.mk @@ -52,7 +52,11 @@ LOCAL_SRC_FILES := $(bugpoint_SRC_FILES) LOCAL_STATIC_LIBRARIES := $(bugpoint_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) -- cgit v1.1