aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2008-03-02 06:33:06 +0000
committerNick Kledzik <kledzik@apple.com>2008-03-02 06:33:06 +0000
commit873570e0ef68bce8cd18d040b15e0bb77724a82a (patch)
tree6bec019a3e356568406769126f4238144ba26ad1 /tools
parent939732afc20211a321e92cfa1095ad61e9ed9899 (diff)
downloadexternal_llvm-873570e0ef68bce8cd18d040b15e0bb77724a82a.zip
external_llvm-873570e0ef68bce8cd18d040b15e0bb77724a82a.tar.gz
external_llvm-873570e0ef68bce8cd18d040b15e0bb77724a82a.tar.bz2
suppress extra -install_name on Tiger. The 10.4 tools don't support it. Fix whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/lto2/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/tools/lto2/Makefile b/tools/lto2/Makefile
index ed9c74c..45fa69c 100644
--- a/tools/lto2/Makefile
+++ b/tools/lto2/Makefile
@@ -32,16 +32,22 @@ ifeq ($(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,$(LLVM_SUBMIT_VERSION).$(LLVM_SUBMIT_SUBVERSION) \
-Wl,-compatibility_version -Wl,1
endif
# extra options to override libtool defaults
LLVMLibsOptions := $(LLVMLibsOptions) \
- -no-undefined -avoid-version \
- -Wl,-exported_symbols_list -Wl,$(PROJ_SRC_DIR)/lto.exports \
- -Wl,-dead_strip \
- -Wl,-install_name \
- -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)" \
- -Wl,-seg1addr -Wl,0xE0000000
+ -no-undefined -avoid-version \
+ -Wl,-exported_symbols_list -Wl,$(PROJ_SRC_DIR)/lto.exports \
+ -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