diff options
author | Zonr Chang <zonr@google.com> | 2010-10-22 20:03:37 +0800 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2010-10-22 14:02:25 -0700 |
commit | 9ebeb69b21c795d0c9f513eb40758624d56a6cfe (patch) | |
tree | 1faab6fd97f0c40526ebc02a6c602f215edb5dc1 /lib/Linker/Android.mk | |
parent | d98b3ea750bd3d93775a07db563ed40c67823166 (diff) | |
download | external_llvm-9ebeb69b21c795d0c9f513eb40758624d56a6cfe.zip external_llvm-9ebeb69b21c795d0c9f513eb40758624d56a6cfe.tar.gz external_llvm-9ebeb69b21c795d0c9f513eb40758624d56a6cfe.tar.bz2 |
Add target build of libLLVMLinker.
Adding LOCAL_MODULE_TAGS := optional, for it to pass the tag checking.
This increase ~24KB on libbcc.so.
Change-Id: I3dcfeb3aa843d597050663752caacf7545e09ff0
Diffstat (limited to 'lib/Linker/Android.mk')
-rw-r--r-- | lib/Linker/Android.mk | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/lib/Linker/Android.mk b/lib/Linker/Android.mk index 2813000..792a675 100644 --- a/lib/Linker/Android.mk +++ b/lib/Linker/Android.mk @@ -1,17 +1,34 @@ LOCAL_PATH:= $(call my-dir) +linker_SRC_FILES := \ + LinkModules.cpp + # For the host # ===================================================== include $(CLEAR_VARS) include $(CLEAR_TBLGEN_VARS) LOCAL_SRC_FILES := \ + $(linker_SRC_FILES)\ LinkArchives.cpp \ Linker.cpp \ - LinkItems.cpp \ - LinkModules.cpp + LinkItems.cpp -LOCAL_MODULE:= libLLVMLinker +LOCAL_MODULE:= libLLVMLinker +LOCAL_MODULE_TAGS := optional include $(LLVM_HOST_BUILD_MK) include $(BUILD_HOST_STATIC_LIBRARY) + +# For the device +# ===================================================== +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(linker_SRC_FILES) + +LOCAL_MODULE:= libLLVMLinker +LOCAL_MODULE_TAGS := optional + +include $(LLVM_DEVICE_BUILD_MK) +include $(LLVM_GEN_INTRINSICS_MK) +include $(BUILD_STATIC_LIBRARY) |