summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-shlib/Makefile
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-01-26 21:29:08 +0000
committerChris Bieneman <beanz@apple.com>2016-01-26 21:29:08 +0000
commite49730d4baa8443ad56f59bd8066bf4c1e56ea72 (patch)
tree3b8c29f4c2b5812db6c63a6aa42f0f59cadaa105 /llvm/tools/llvm-shlib/Makefile
parente7305cc4b3644e2e82684603f0b37a9ec1798e4c (diff)
downloadbcm5719-llvm-e49730d4baa8443ad56f59bd8066bf4c1e56ea72.tar.gz
bcm5719-llvm-e49730d4baa8443ad56f59bd8066bf4c1e56ea72.zip
Remove autoconf support
Summary: This patch is provided in preparation for removing autoconf on 1/26. The proposal to remove autoconf on 1/26 was discussed on the llvm-dev thread here: http://lists.llvm.org/pipermail/llvm-dev/2016-January/093875.html "I felt a great disturbance in the [build system], as if millions of [makefiles] suddenly cried out in terror and were suddenly silenced. I fear something [amazing] has happened." - Obi Wan Kenobi Reviewers: chandlerc, grosbach, bob.wilson, tstellarAMD, echristo, whitequark Subscribers: chfast, simoncook, emaste, jholewinski, tberghammer, jfb, danalbert, srhines, arsenm, dschuff, jyknight, dsanders, joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D16471 llvm-svn: 258861
Diffstat (limited to 'llvm/tools/llvm-shlib/Makefile')
-rw-r--r--llvm/tools/llvm-shlib/Makefile116
1 files changed, 0 insertions, 116 deletions
diff --git a/llvm/tools/llvm-shlib/Makefile b/llvm/tools/llvm-shlib/Makefile
deleted file mode 100644
index 19077a3858a..00000000000
--- a/llvm/tools/llvm-shlib/Makefile
+++ /dev/null
@@ -1,116 +0,0 @@
-##===- tools/shlib/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 = LLVM-$(LLVM_VERSION_MAJOR).$(LLVM_VERSION_MINOR)$(LLVM_VERSION_SUFFIX)
-LIBRARYALIASNAME = LLVM-$(LLVMVersion)
-
-NO_BUILD_ARCHIVE := 1
-LINK_LIBS_IN_SHARED := 1
-SHARED_LIBRARY := 1
-SHARED_ALIAS := 1
-
-include $(LEVEL)/Makefile.config
-
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
- EXPORTED_SYMBOL_FILE = $(ObjDir)/$(LIBRARYNAME).exports
-
- ifeq (1,$(ENABLE_EMBED_STDCXX))
- # It is needed to force static-stdc++.a linked.
- SHLIB_FRAG_NAMES += stdc++.a.o
- endif
-
-endif
-
-include $(LEVEL)/Makefile.common
-
-# Include all archives in libLLVM.(so|dylib) except the ones that have
-# their own dynamic libraries and TableGen.
-Archives := $(wildcard $(LibDir)/libLLVM*.a)
-SharedLibraries := $(wildcard $(LibDir)/libLLVM*$(SHLIBEXT))
-ExcludeFromLibLlvm := $(basename $(SharedLibraries)).a %/libLLVMTableGen.a
-IncludeInLibLlvm := $(filter-out $(ExcludeFromLibLlvm), $(Archives))
-LLVMLibsOptions := $(IncludeInLibLlvm:$(LibDir)/lib%.a=-l%)
-LLVMLibsPaths := $(IncludeInLibLlvm)
-
-$(LibName.SO): $(LLVMLibsPaths)
-
-ifeq ($(HOST_OS),Darwin)
- # set dylib internal version number to llvmCore submission number
- ifdef LLVM_SUBMIT_VERSION
- LLVMLibsOptions := $(LLVMLibsOptions) -Wl,-current_version \
- -Wl,$(LLVM_SUBMIT_VERSION).$(LLVM_SUBMIT_SUBVERSION) \
- -Wl,-compatibility_version -Wl,1
- endif
- # Include everything from the .a's into the shared library.
- LLVMLibsOptions := $(LLVMLibsOptions) -all_load
-endif
-
-ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig))
- # Include everything from the .a's into the shared library.
- LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
- -Wl,--no-whole-archive
-endif
-
-ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD GNU))
- # Add soname to the library.
- LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
-endif
-
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD))
- # Don't allow unresolved symbols.
- LLVMLibsOptions += -Wl,--no-undefined
-endif
-
-ifeq ($(HOST_OS),SunOS)
- # add -z allextract ahead of other libraries on Solaris
- LLVMLibsOptions := -Wl,-z -Wl,allextract $(LLVMLibsOptions)
-endif
-
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
-
-SHLIB_STUBS := $(addprefix $(ObjDir)/, $(SHLIB_FRAG_NAMES))
-SHLIB_FRAGS := $(patsubst %.a.o, $(ObjDir)/%.syms.txt, $(LIBRARYNAME).a.o $(SHLIB_FRAG_NAMES))
-LLVMLibsOptions := $(SHLIB_STUBS) $(LLVMLibsOptions)
-
-$(LibName.SO): $(SHLIB_STUBS)
-
-%.syms.txt: %.a.o
- $(Echo) Collecting global symbols of $(notdir $*)
- $(Verb) $(NM_PATH) -g $< > $@
-
-$(ObjDir)/$(LIBRARYNAME).exports: $(SHLIB_FRAGS) $(ObjDir)/.dir
- $(Echo) Generating exports for $(LIBRARYNAME)
- $(Verb) ($(SED) -n \
- -e "s/^.* T _\([^.][^.]*\)$$/\1/p" \
- -e "s/^.* [BDR] _\([^.][^.]*\)$$/\1 DATA/p" \
- $(SHLIB_FRAGS) \
- | sort -u) > $@
-
-$(ObjDir)/$(LIBRARYNAME).a.o: $(LLVMLibsPaths) $(ObjDir)/.dir
- $(Echo) Linking all LLVMLibs together for $(LIBRARYNAME)
- $(Verb) $(Link) -nostartfiles -Wl,-r -nodefaultlibs -o $@ \
- -Wl,--whole-archive $(LLVMLibsPaths) \
- -Wl,--no-whole-archive
-
-$(ObjDir)/stdc++.a.o: $(ObjDir)/.dir
- $(Echo) Linking all libs together for static libstdc++.a
- $(Verb) $(Link) -nostartfiles -Wl,-r -nodefaultlibs -o $@ \
- -Wl,--whole-archive -lstdc++ \
- -Wl,--no-whole-archive
-# FIXME: workaround to invalidate -lstdc++
- $(Echo) Making dummy -lstdc++ to lib
- $(Verb) $(AR) rc $(ToolDir)/libstdc++.dll.a
-# FIXME: Is install-local needed?
-
-clean-local::
- $(Verb) $(RM) -f $(ToolDir)/libstdc++.dll.a
-
-endif
OpenPOWER on IntegriCloud