summaryrefslogtreecommitdiff
path: root/extra/llvm/fix-gold-lto-linking.patch
blob: 84d166471a1c1b3074c69b32094ca2a3a1a6fb98 (plain)
1
2
3
4
5
6
7
8
9
10
11
diff -upr llvm-3.0.src.orig/tools/gold/Makefile llvm-3.0.src/tools/gold/Makefile
--- llvm-3.0.src.orig/tools/gold/Makefile	2011-05-31 23:00:45.000000000 +0300
+++ llvm-3.0.src/tools/gold/Makefile	2011-12-04 22:06:59.000000000 +0200
@@ -26,6 +26,6 @@ LINK_COMPONENTS := support
 # 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+=$(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT)
+CXXFLAGS+=-L $(SharedLibDir) -lLTO
 
 include $(LEVEL)/Makefile.common