summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/libprofile/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/runtime/libprofile/Makefile b/runtime/libprofile/Makefile
index fa0d69c5d4..cf31e46949 100644
--- a/runtime/libprofile/Makefile
+++ b/runtime/libprofile/Makefile
@@ -23,17 +23,12 @@ include $(LEVEL)/Makefile.common
ifeq ($(HOST_OS),Darwin)
# Special hack to allow libprofile_rt 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
+ PROFILE_RT_LIBRARY_VERSION := $(LLVM_SUBMIT_VERSION)
# Set dylib internal version number to llvmCore submission number.
ifdef LLVM_SUBMIT_VERSION
LLVMLibsOptions := $(LLVMLibsOptions) -Wl,-current_version \
- -Wl,$(LTO_LIBRARY_VERSION).$(LLVM_SUBMIT_SUBVERSION) \
+ -Wl,$(PROFILE_RT_LIBRARY_VERSION).$(LLVM_SUBMIT_SUBVERSION) \
-Wl,-compatibility_version -Wl,1
endif
# Extra options to override libtool defaults.