Differential Revision: http://reviews.llvm.org/D4275
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211675
91177308-0d34-0410-b5e6-
96231b3b80d8
LEVEL := ../..
LIBRARYNAME := LLVMgold
-LINK_COMPONENTS := support
LINK_LIBS_IN_SHARED := 1
SHARED_LIBRARY := 1
LOADABLE_MODULE := 1
# 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
include $(LEVEL)/Makefile.common
-LIBS += -lLTO