]> granicus.if.org Git - clang/commitdiff
Run install_name_tool to fix the dynamic library ID after it has been copied.
authorAlexander Potapenko <glider@google.com>
Mon, 17 Sep 2012 14:18:41 +0000 (14:18 +0000)
committerAlexander Potapenko <glider@google.com>
Mon, 17 Sep 2012 14:18:41 +0000 (14:18 +0000)
Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=113

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164031 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/compiler-rt/Makefile

index f0c224208daaf1147d8f32c69b565f6416ed0e96..c1dcd6489450129753f64b9f545afd9be221d215 100644 (file)
@@ -149,6 +149,8 @@ $(ResourceLibDir)/$1/libclang_rt.%.dylib: \
                $(ResourceLibDir)/$1/.dir
        $(Echo) Copying runtime library $1/$$* to build dir
        $(Verb) cp $(PROJ_OBJ_DIR)/clang_$1/$$*/libcompiler_rt.dylib $$@
+       $(Echo) Fixing LC_ID_DYLIB of $$@
+       $(Verb) install_name_tool $$@ -id $$@
 RuntimeLibrary.$1: \
                $(RuntimeLibrary.$1.Configs:%=$(ResourceLibDir)/$1/libclang_rt.%)
 .PHONY: RuntimeLibrary.$1