diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-04 00:30:34 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-04 00:30:34 +0000 |
commit | e97552e8509992f85607a669913de883592a4181 (patch) | |
tree | 8da96ba40df288cd3c21a9ce7800e60d3175fef8 /tools/llvm-shlib | |
parent | da7e6a9c8888fe9c4198214cc19f6f55e21e72e4 (diff) | |
download | llvm-e97552e8509992f85607a669913de883592a4181.tar.gz llvm-e97552e8509992f85607a669913de883592a4181.tar.bz2 llvm-e97552e8509992f85607a669913de883592a4181.tar.xz |
Exclude libLLVMTableGen.a from the shared library
Unbreaks tools for --enable-shared build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-shlib')
-rw-r--r-- | tools/llvm-shlib/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile index 9e6facab70..0695c0070d 100644 --- a/tools/llvm-shlib/Makefile +++ b/tools/llvm-shlib/Makefile @@ -30,10 +30,11 @@ endif include $(LEVEL)/Makefile.common # Include all archives in libLLVM.(so|dylib) except the ones that have -# their own dynamic libraries. +# their own dynamic libraries and TableGen. Archives := $(wildcard $(LibDir)/libLLVM*.a) SharedLibraries := $(wildcard $(LibDir)/libLLVM*$(SHLIBEXT)) -IncludeInLibLlvm := $(filter-out $(basename $(SharedLibraries)).a, $(Archives)) +ExcludeFromLibLlvm := $(basename $(SharedLibraries)).a %/libLLVMTableGen.a +IncludeInLibLlvm := $(filter-out $(ExcludeFromLibLlvm), $(Archives)) LLVMLibsOptions := $(IncludeInLibLlvm:$(LibDir)/lib%.a=-l%) LLVMLibsPaths := $(IncludeInLibLlvm) |