[llvm-commits] [llvm] r141052 - /llvm/trunk/tools/llvm-shlib/Makefile

Peter Collingbourne peter at pcc.me.uk
Mon Oct 3 17:30:35 PDT 2011


Author: pcc
Date: Mon Oct  3 19:30:34 2011
New Revision: 141052

URL: http://llvm.org/viewvc/llvm-project?rev=141052&view=rev
Log:
Exclude libLLVMTableGen.a from the shared library

Unbreaks tools for --enable-shared build.

Modified:
    llvm/trunk/tools/llvm-shlib/Makefile

Modified: llvm/trunk/tools/llvm-shlib/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-shlib/Makefile?rev=141052&r1=141051&r2=141052&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-shlib/Makefile (original)
+++ llvm/trunk/tools/llvm-shlib/Makefile Mon Oct  3 19:30:34 2011
@@ -30,10 +30,11 @@
 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)
 





More information about the llvm-commits mailing list