[llvm-commits] [llvm] r132929 - /llvm/trunk/runtime/libprofile/Makefile
Nick Lewycky
nicholas at mxc.ca
Tue Jun 14 21:44:16 PDT 2011
Hi Bill,
This looks like copy-and-paste from tools/lto/Makefile. Could you
refactor this into Makefile.rules?
Bill Wendling wrote:
> Author: void
> Date: Mon Jun 13 15:14:37 2011
> New Revision: 132929
>
> URL: http://llvm.org/viewvc/llvm-project?rev=132929&view=rev
> Log:
> Add compatibility version when compiling the Apple way.
> <rdar://problem/9600408>
>
> Modified:
> llvm/trunk/runtime/libprofile/Makefile
>
> Modified: llvm/trunk/runtime/libprofile/Makefile
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/libprofile/Makefile?rev=132929&r1=132928&r2=132929&view=diff
> ==============================================================================
> --- llvm/trunk/runtime/libprofile/Makefile (original)
> +++ llvm/trunk/runtime/libprofile/Makefile Mon Jun 13 15:14:37 2011
> @@ -20,3 +20,33 @@
> EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/libprofile.exports
>
> 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
Still named LLVM_LTO_..., and LTO_... below?
Nick
> + 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,$(LTO_LIBRARY_VERSION).$(LLVM_SUBMIT_SUBVERSION) \
> + -Wl,-compatibility_version -Wl,1
> + endif
> + # Extra options to override libtool defaults.
> + LLVMLibsOptions := $(LLVMLibsOptions) \
> + -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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list