projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a test for llvm-ar's 'd' operation.
[oota-llvm.git]
/
tools
/
gold
/
Makefile
diff --git
a/tools/gold/Makefile
b/tools/gold/Makefile
index 77eacb7ee5bfa5735a29ff60fb8ecb1882405c78..496e31cc391acef9621fdd44f8be8bdd5151c05f 100644
(file)
--- a/
tools/gold/Makefile
+++ b/
tools/gold/Makefile
@@
-7,8
+7,12
@@
#
##===----------------------------------------------------------------------===##
#
##===----------------------------------------------------------------------===##
-LEVEL = ../..
-LIBRARYNAME = libLLVMgold
+LEVEL := ../..
+LIBRARYNAME := LLVMgold
+LINK_COMPONENTS := support
+LINK_LIBS_IN_SHARED := 1
+SHARED_LIBRARY := 1
+LOADABLE_MODULE := 1
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
@@
-17,16
+21,11
@@
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
# early so we can set up LINK_COMPONENTS before including Makefile.rules
include $(LEVEL)/Makefile.config
# 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
-LOADABLE_MODULE = 1
-
-LINK_COMPONENTS := support system
-LIBS += -llto
-
# Because off_t is used in the public API, the largefile parts are required for
# ABI compatibility.
# 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 += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+LDFLAGS += -L$(SharedLibDir)/$(SharedPrefix)
include $(LEVEL)/Makefile.common
include $(LEVEL)/Makefile.common
+
+LIBS += -lLTO