summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/gold/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gold/Makefile b/tools/gold/Makefile
index 78eda03e34..02f66d73ee 100644
--- a/tools/gold/Makefile
+++ b/tools/gold/Makefile
@@ -24,6 +24,6 @@ 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 += $(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT)
+CXXFLAGS += -L$(SharedLibDir)/$(SharedPrefix) -lLTO
include $(LEVEL)/Makefile.common