diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-08-27 03:03:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-08-27 03:03:07 +0000 |
commit | a16c2e3493816472afd78521094f08bf2d26165e (patch) | |
tree | 16bed74611ec77c0f29d85996c34dd4bc683b161 /tools/gold | |
parent | e3677a66fa7e1324bee44c82ebf92d5ae1a02efb (diff) | |
download | llvm-a16c2e3493816472afd78521094f08bf2d26165e.tar.gz llvm-a16c2e3493816472afd78521094f08bf2d26165e.tar.bz2 llvm-a16c2e3493816472afd78521094f08bf2d26165e.tar.xz |
Pass -lLTO after gold-plugin.o so that it gets used in systems that default to
--as-needed.
Patch by Felix Geyer. Fixes pr13262.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold')
-rw-r--r-- | tools/gold/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gold/Makefile b/tools/gold/Makefile index 02f66d73ee..496e31cc39 100644 --- a/tools/gold/Makefile +++ b/tools/gold/Makefile @@ -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 |