forked from OSchip/llvm-project
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:
parent
9320707aac
commit
5e892a7a03
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue