When using LINK_COMPONENTS, append the components to the end of the
authorReid Spencer <rspencer@reidspencer.com>
Sun, 4 Feb 2007 22:12:25 +0000 (22:12 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 4 Feb 2007 22:12:25 +0000 (22:12 +0000)
libraries linked with. This permits a project to still use USEDLIBS to
specify its own libraries in conjunction with LINK_COMPONENTS. llvm-stacker
needs this after libLLVMTransforms.a went away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33886 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 2b9b7fa1fc8b8d536745f0eb93300e187404d2f8..0e586a87f9ca2c785d4c04058c8b46abdc484721 100644 (file)
@@ -681,8 +681,8 @@ $(LLVM_CONFIG):
         
 $(ToolDir)/$(strip $(TOOLNAME))$(EXEEXT): $(LLVM_CONFIG)
 
-ProjLibsOptions = $(shell $(LLVM_CONFIG) --libs     $(LINK_COMPONENTS))
-ProjLibsPaths   = $(LLVM_CONFIG) \
+ProjLibsOptions += $(shell $(LLVM_CONFIG) --libs     $(LINK_COMPONENTS))
+ProjLibsPaths   += $(LLVM_CONFIG) \
                   $(shell $(LLVM_CONFIG) --libfiles $(LINK_COMPONENTS))
 endif
 endif