[PATCH] Fix unresolved symbols when loading gold plugin

Alexey Volkov avolkov.intel at gmail.com
Wed Jun 25 01:13:08 PDT 2014


Closed by commit rL211675 (authored by volkalex).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4275

Files:
  llvm/trunk/tools/gold/Makefile

Index: llvm/trunk/tools/gold/Makefile
===================================================================
--- llvm/trunk/tools/gold/Makefile
+++ llvm/trunk/tools/gold/Makefile
@@ -9,7 +9,6 @@
 
 LEVEL := ../..
 LIBRARYNAME := LLVMgold
-LINK_COMPONENTS := support
 LINK_LIBS_IN_SHARED := 1
 SHARED_LIBRARY := 1
 LOADABLE_MODULE := 1
@@ -21,11 +20,12 @@
 # early so we can set up LINK_COMPONENTS before including Makefile.rules
 include $(LEVEL)/Makefile.config
 
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) LTO
+
 # Because off_t is used in the public API, the largefile parts are required for
 # ABI compatibility.
 CXXFLAGS += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 LDFLAGS += -L$(SharedLibDir)/$(SharedPrefix)
 
 include $(LEVEL)/Makefile.common
 
-LIBS += -lLTO
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4275.10823.patch
Type: text/x-patch
Size: 787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140625/d08a7691/attachment.bin>


More information about the llvm-commits mailing list