summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-09-17 14:18:41 +0000
committerAlexander Potapenko <glider@google.com>2012-09-17 14:18:41 +0000
commit8bea57973873b20c6685916b9229af5d9e1e29ef (patch)
tree18e065c4b83c4453994a78ffcf09ee6962eedf79
parent7bd29146833d1bb18e537db18eaa339720ee651f (diff)
downloadbcm5719-llvm-8bea57973873b20c6685916b9229af5d9e1e29ef.tar.gz
bcm5719-llvm-8bea57973873b20c6685916b9229af5d9e1e29ef.zip
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 llvm-svn: 164031
-rw-r--r--clang/runtime/compiler-rt/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/runtime/compiler-rt/Makefile b/clang/runtime/compiler-rt/Makefile
index f0c224208da..c1dcd648945 100644
--- a/clang/runtime/compiler-rt/Makefile
+++ b/clang/runtime/compiler-rt/Makefile
@@ -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
OpenPOWER on IntegriCloud