Index: llvm-3.0-3.0/tools/gold/Makefile
===================================================================
--- llvm-3.0-3.0.orig/tools/gold/Makefile	2011-11-03 23:48:27.000000000 +0100
+++ llvm-3.0-3.0/tools/gold/Makefile	2011-11-15 11:55:44.802016367 +0100
@@ -26,6 +26,7 @@
 # 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+=$(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT)
+CXXFLAGS+=-L$(SharedLibDir)/ -lLTO
 
 include $(LEVEL)/Makefile.common
