Fix unresolved symbols when loading gold plugin

Differential Revision: http://reviews.llvm.org/D4275

llvm-svn: 211675
This commit is contained in:
Alexey Volkov 2014-06-25 08:04:58 +00:00
parent d449fc8671
commit 2ecf636073
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,6 @@
LEVEL := ../.. LEVEL := ../..
LIBRARYNAME := LLVMgold LIBRARYNAME := LLVMgold
LINK_COMPONENTS := support
LINK_LIBS_IN_SHARED := 1 LINK_LIBS_IN_SHARED := 1
SHARED_LIBRARY := 1 SHARED_LIBRARY := 1
LOADABLE_MODULE := 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 # early so we can set up LINK_COMPONENTS before including Makefile.rules
include $(LEVEL)/Makefile.config 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 # Because off_t is used in the public API, the largefile parts are required for
# ABI compatibility. # ABI compatibility.
CXXFLAGS += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 CXXFLAGS += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
@ -28,4 +29,3 @@ LDFLAGS += -L$(SharedLibDir)/$(SharedPrefix)
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common
LIBS += -lLTO