diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-02-23 20:53:37 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-02-23 20:53:37 +0000 |
commit | 407fbdd161d4134901fefe267779a4aaaeab2f0d (patch) | |
tree | 10889569ea16b2dd7523646ad44c85166abc5687 /tools/llvm-shlib | |
parent | d7283d9c54dbc45d47ee0fbed0fbdcbf0ae74f23 (diff) | |
download | external_llvm-407fbdd161d4134901fefe267779a4aaaeab2f0d.zip external_llvm-407fbdd161d4134901fefe267779a4aaaeab2f0d.tar.gz external_llvm-407fbdd161d4134901fefe267779a4aaaeab2f0d.tar.bz2 |
Roll back r96959 again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-shlib')
-rw-r--r-- | tools/llvm-shlib/Makefile | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile deleted file mode 100644 index ae09244..0000000 --- a/tools/llvm-shlib/Makefile +++ /dev/null @@ -1,67 +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-$(LLVMVersion) - -NO_BUILD_ARCHIVE = 1 -LINK_LIBS_IN_SHARED = 1 -SHARED_LIBRARY = 1 - -include $(LEVEL)/Makefile.common - -# Include all archives in libLLVM.(so|dylib) except the ones that have -# their own dynamic libraries. -Archives := $(wildcard $(LibDir)/libLLVM*.a) -SharedLibraries := $(wildcard $(LibDir)/libLLVM*$(SHLIBEXT)) -IncludeInLibLlvm := $(filter-out $(basename $(SharedLibraries)).a, $(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 - # extra options to override libtool defaults - LLVMLibsOptions := $(LLVMLibsOptions) \ - -avoid-version \ - -Wl,-dead_strip \ - -Wl,-seg1addr -Wl,0xE0000000 - - # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line - DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/') - ifneq ($(DARWIN_VERS),8) - LLVMLibsOptions := $(LLVMLibsOptions) \ - -Wl,-install_name \ - -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)" - endif -endif - -ifeq ($(HOST_OS), Linux) - # Include everything from the .a's into the shared library. - LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \ - -Wl,--no-whole-archive - # Warn if we'll need to modify the text segment when loading libLLVM.so. - LLVMLibsOptions += -Wl,--warn-shared-textrel - # Don't allow unresolved symbols. - LLVMLibsOptions += -Wl,--no-undefined - ifeq ($(ARCH), ARM) - # ARM's shared libgcc omits several of the __sync functions that are - # present in the static libgcc, so we also link in the static gcc. This - # is described at http://gcc.gnu.org/PR40133. - LLVMLibsOptions += -lgcc - endif -endif |