X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fgold%2FMakefile;h=496e31cc391acef9621fdd44f8be8bdd5151c05f;hb=55ec2218c448ef9e0d09b5534885b6d2a9786a73;hp=37a7e4ef7fcbb31771bfb903e6ce99b1575ae9ca;hpb=3e62b2dc93dae6904f0717612782ab6ebf413e1d;p=oota-llvm.git diff --git a/tools/gold/Makefile b/tools/gold/Makefile index 37a7e4ef7fc..496e31cc391 100644 --- a/tools/gold/Makefile +++ b/tools/gold/Makefile @@ -7,23 +7,25 @@ # ##===----------------------------------------------------------------------===## -LEVEL = ../.. -LIBRARYNAME = LLVMgold +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 # 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 := +# 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 +LDFLAGS += -L$(SharedLibDir)/$(SharedPrefix) 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 +LIBS += -lLTO