summaryrefslogtreecommitdiff
path: root/tools/gold/Makefile
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-02-03 07:13:24 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-02-03 07:13:24 +0000
commit3e62b2dc93dae6904f0717612782ab6ebf413e1d (patch)
treee4f71cbcec1ff79ea2557ccf7c7728bf339b75ce /tools/gold/Makefile
parente792b1d841d1173c665533dfaef2c8d8d5a795ee (diff)
downloadllvm-3e62b2dc93dae6904f0717612782ab6ebf413e1d.tar.gz
llvm-3e62b2dc93dae6904f0717612782ab6ebf413e1d.tar.bz2
llvm-3e62b2dc93dae6904f0717612782ab6ebf413e1d.tar.xz
Add LLVM plugin for gold.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold/Makefile')
-rw-r--r--tools/gold/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/gold/Makefile b/tools/gold/Makefile
new file mode 100644
index 0000000000..37a7e4ef7f
--- /dev/null
+++ b/tools/gold/Makefile
@@ -0,0 +1,29 @@
+#===- tools/gold/Makefile ----------------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LEVEL = ../..
+LIBRARYNAME = LLVMgold
+
+# Include this here so we can get the configuration of the targets
+# that have been configured for construction. We have to do this
+# early so we can set up LINK_COMPONENTS before including Makefile.rules
+include $(LEVEL)/Makefile.config
+
+LINK_LIBS_IN_SHARED=1
+SHARED_LIBRARY = 1
+BUILD_ARCHIVE = 0
+DONT_BUILD_RELINKED = 1
+
+LINK_COMPONENTS :=
+
+include $(LEVEL)/Makefile.common
+
+# 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