[llvm-commits] [llvm] r47817 - /llvm/trunk/tools/lto2/Makefile
Nick Kledzik
kledzik at apple.com
Sat Mar 1 22:33:07 PST 2008
Author: kledzik
Date: Sun Mar 2 00:33:06 2008
New Revision: 47817
URL: http://llvm.org/viewvc/llvm-project?rev=47817&view=rev
Log:
suppress extra -install_name on Tiger. The 10.4 tools don't support it. Fix whitespace.
Modified:
llvm/trunk/tools/lto2/Makefile
Modified: llvm/trunk/tools/lto2/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto2/Makefile?rev=47817&r1=47816&r2=47817&view=diff
==============================================================================
--- llvm/trunk/tools/lto2/Makefile (original)
+++ llvm/trunk/tools/lto2/Makefile Sun Mar 2 00:33:06 2008
@@ -32,16 +32,22 @@
# 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
More information about the llvm-commits
mailing list