llvm.org GIT mirror llvm / e97552e
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 Peter Collingbourne 8 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2929 include $(LEVEL)/Makefile.common
3030
3131 # Include all archives in libLLVM.(so|dylib) except the ones that have
32 # their own dynamic libraries.
32 # their own dynamic libraries and TableGen.
3333 Archives := $(wildcard $(LibDir)/libLLVM*.a)
3434 SharedLibraries := $(wildcard $(LibDir)/libLLVM*$(SHLIBEXT))
35 IncludeInLibLlvm := $(filter-out $(basename $(SharedLibraries)).a, $(Archives))
35 ExcludeFromLibLlvm := $(basename $(SharedLibraries)).a %/libLLVMTableGen.a
36 IncludeInLibLlvm := $(filter-out $(ExcludeFromLibLlvm), $(Archives))
3637 LLVMLibsOptions := $(IncludeInLibLlvm:$(LibDir)/lib%.a=-l%)
3738 LLVMLibsPaths := $(IncludeInLibLlvm)
3839