diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2014-10-14 12:18:10 -0700 |
---|---|---|
committer | Dmitriy Ivanov <dimitry@google.com> | 2014-10-14 15:55:57 -0700 |
commit | 1d74e57fa22fbcad1e14d776c771472b2d8438fb (patch) | |
tree | 44df335a7c560fcdb47560b6c27750af4a54b0d4 /dalvikvm | |
parent | 58e51f38e2304a08aa9ec380383e0b3614f96a96 (diff) | |
download | art-1d74e57fa22fbcad1e14d776c771472b2d8438fb.zip art-1d74e57fa22fbcad1e14d776c771472b2d8438fb.tar.gz art-1d74e57fa22fbcad1e14d776c771472b2d8438fb.tar.bz2 |
Fixing mac build
MacOS static linker does not understand --export-dynamic
and --version-script. According to man ld there is
-export_dynamic option which should do the same
thing.
Change-Id: I8cde8c6c7305bebbbcc9dded143fa5cdaf386d65
Diffstat (limited to 'dalvikvm')
-rw-r--r-- | dalvikvm/Android.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dalvikvm/Android.mk b/dalvikvm/Android.mk index b7e649a..d5f3586 100644 --- a/dalvikvm/Android.mk +++ b/dalvikvm/Android.mk @@ -55,7 +55,13 @@ LOCAL_SRC_FILES := dalvikvm.cc ../sigchainlib/sigchain.cc LOCAL_CFLAGS := $(dalvikvm_cflags) LOCAL_C_INCLUDES := art/runtime LOCAL_SHARED_LIBRARIES := libnativehelper -LOCAL_LDFLAGS := -ldl -lpthread -Wl,--export-dynamic +LOCAL_LDFLAGS := -ldl -lpthread +# Mac OS linker doesn't understand --export-dynamic. +ifneq ($(HOST_OS),darwin) + LOCAL_LDFLAGS += -Wl,--export-dynamic +else + LOCAL_LDFLAGS += -Wl,-export_dynamic +endif LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common.mk LOCAL_IS_HOST_MODULE := true |