summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-05-31 19:53:26 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-05-31 19:53:26 +0000
commit471fa149d10abfa02a5f2d20e4bba621b224c930 (patch)
tree0c6b3b8c291e7a9c48fe8e265276d5d780e39123 /tools
parentdf48e84b5bf0967c1fc397912c109f29475c791b (diff)
downloadllvm-471fa149d10abfa02a5f2d20e4bba621b224c930.tar.gz
llvm-471fa149d10abfa02a5f2d20e4bba621b224c930.tar.bz2
llvm-471fa149d10abfa02a5f2d20e4bba621b224c930.tar.xz
Make the gold plugin build on Cygwin as well as Linux. Patch by David Meyer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gold/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gold/Makefile b/tools/gold/Makefile
index 66a0271fa2..c214ceaf08 100644
--- a/tools/gold/Makefile
+++ b/tools/gold/Makefile
@@ -22,10 +22,10 @@ SHARED_LIBRARY = 1
LOADABLE_MODULE = 1
LINK_COMPONENTS := support
-LIBS += -llto
# 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 -lLTO
+CXXFLAGS+=$(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT)
include $(LEVEL)/Makefile.common