commit | b626280eb16a62e32a100f0082e9ea7e496a51d7 | [log] [tgz] |
---|---|---|
author | Alexander Potapenko <glider@google.com> | Mon Sep 17 14:18:41 2012 +0000 |
committer | Alexander Potapenko <glider@google.com> | Mon Sep 17 14:18:41 2012 +0000 |
tree | 34a627d9655460b05e5f7ce13b7e05d4d3dbafa7 | |
parent | 6944e20065955414a56a6aab9b7e271e3e826a88 [diff] |
Run install_name_tool to fix the dynamic library ID after it has been copied. 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
diff --git a/runtime/compiler-rt/Makefile b/runtime/compiler-rt/Makefile index f0c2242..c1dcd64 100644 --- a/runtime/compiler-rt/Makefile +++ b/runtime/compiler-rt/Makefile
@@ -149,6 +149,8 @@ $(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