Pass -lLTO after gold-plugin.o so that it gets used in systems that default to

--as-needed.
Patch by Felix Geyer. Fixes pr13262.

llvm-svn: 162652
This commit is contained in:
Rafael Espindola 2012-08-27 03:03:07 +00:00
parent 9320707aac
commit 5e892a7a03
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,8 @@ include $(LEVEL)/Makefile.config
# 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
CXXFLAGS += -L$(SharedLibDir)/$(SharedPrefix) -lLTO
LDFLAGS += -L$(SharedLibDir)/$(SharedPrefix)
include $(LEVEL)/Makefile.common
LIBS += -lLTO