summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-07-16 01:41:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-07-16 01:41:38 +0000
commitbdb298912bde7e83df8c04e897a81eefd7aab02a (patch)
tree26cba9128f08fbbd20de94b4e9a302b10c60c609 /llvm/tools
parent15a81cddb44979f053c32e96983ad7300a36b9a2 (diff)
downloadbcm5719-llvm-bdb298912bde7e83df8c04e897a81eefd7aab02a.tar.gz
bcm5719-llvm-bdb298912bde7e83df8c04e897a81eefd7aab02a.zip
build/Darwin: Add an LLVM_LTO_VERSION_OFFSET make variable to allow offsetting
the libLTO library version from the actual build version. llvm-svn: 108495
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/lto/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/tools/lto/Makefile b/llvm/tools/lto/Makefile
index 8d57333f9c0..f3fb79e6823 100644
--- a/llvm/tools/lto/Makefile
+++ b/llvm/tools/lto/Makefile
@@ -25,10 +25,18 @@ LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter
include $(LEVEL)/Makefile.common
ifeq ($(HOST_OS),Darwin)
+ # Special hack to allow libLTO to have an offset version number.
+ ifdef LLVM_LTO_VERSION_OFFSET
+ LTO_LIBRARY_VERSION := $(shell expr $(LLVM_SUBMIT_VERSION) + \
+ $(LLVM_LTO_VERSION_OFFSET))
+ else
+ LTO_LIBRARY_VERSION := $(LLVM_SUBMIT_VERSION)
+ endif
+
# 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,$(LTO_LIBRARY_VERSION).$(LLVM_SUBMIT_SUBVERSION) \
-Wl,-compatibility_version -Wl,1
endif
# extra options to override libtool defaults
OpenPOWER on IntegriCloud