summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlexey Volkov <avolkov.intel@gmail.com>2014-06-25 08:04:58 +0000
committerAlexey Volkov <avolkov.intel@gmail.com>2014-06-25 08:04:58 +0000
commit9316a78fdddd11d8d97463ac4b0c5f641cf3a546 (patch)
tree8ae26a915431117fcafa9a7107ccff40e5d1d24e /tools
parent98726c311b0dc19076bf242973d92ca1858febe7 (diff)
downloadllvm-9316a78fdddd11d8d97463ac4b0c5f641cf3a546.tar.gz
llvm-9316a78fdddd11d8d97463ac4b0c5f641cf3a546.tar.bz2
llvm-9316a78fdddd11d8d97463ac4b0c5f641cf3a546.tar.xz
Fix unresolved symbols when loading gold plugin
Differential Revision: http://reviews.llvm.org/D4275 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gold/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gold/Makefile b/tools/gold/Makefile
index 496e31cc39..593d8eab29 100644
--- a/tools/gold/Makefile
+++ b/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,6 +20,8 @@ EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
# 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
@@ -28,4 +29,3 @@ LDFLAGS += -L$(SharedLibDir)/$(SharedPrefix)
include $(LEVEL)/Makefile.common
-LIBS += -lLTO