[llvm-commits] [llvm] r162652 - /llvm/trunk/tools/gold/Makefile

Rafael Espindola rafael.espindola at gmail.com
Sun Aug 26 20:03:07 PDT 2012


Author: rafael
Date: Sun Aug 26 22:03:07 2012
New Revision: 162652

URL: http://llvm.org/viewvc/llvm-project?rev=162652&view=rev
Log:
Pass -lLTO after gold-plugin.o so that it gets used in systems that default to
--as-needed.
Patch by Felix Geyer. Fixes pr13262.

Modified:
    llvm/trunk/tools/gold/Makefile

Modified: llvm/trunk/tools/gold/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/Makefile?rev=162652&r1=162651&r2=162652&view=diff
==============================================================================
--- llvm/trunk/tools/gold/Makefile (original)
+++ llvm/trunk/tools/gold/Makefile Sun Aug 26 22:03:07 2012
@@ -24,6 +24,8 @@
 # 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





More information about the llvm-commits mailing list