Stop building RTTI information for *most* llvm libraries. Notable
[oota-llvm.git] / tools / gold / Makefile
index b976b2d7f667f2f727cbf953bacdffdea62327f9..3f77229b33b331780cad1b0aa4e76def3ce38613 100644 (file)
@@ -8,18 +8,24 @@
 ##===----------------------------------------------------------------------===##
 
 LEVEL = ../..
-LIBRARYNAME = LLVMgold
+LIBRARYNAME = libLLVMgold
 
 # 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
 LOADABLE_MODULE = 1
-LINK_COMPONENTS :=
+CXXFLAGS = -fno-rtti
 
-include $(LEVEL)/Makefile.common
+LINK_COMPONENTS := support system
+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
+
+include $(LEVEL)/Makefile.common