[cfe-commits] r164031 - /cfe/trunk/runtime/compiler-rt/Makefile

Alexander Potapenko glider at google.com
Mon Sep 17 07:18:41 PDT 2012


Author: glider
Date: Mon Sep 17 09:18:41 2012
New Revision: 164031

URL: http://llvm.org/viewvc/llvm-project?rev=164031&view=rev
Log:
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

Modified:
    cfe/trunk/runtime/compiler-rt/Makefile

Modified: cfe/trunk/runtime/compiler-rt/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/runtime/compiler-rt/Makefile?rev=164031&r1=164030&r2=164031&view=diff
==============================================================================
--- cfe/trunk/runtime/compiler-rt/Makefile (original)
+++ cfe/trunk/runtime/compiler-rt/Makefile Mon Sep 17 09:18:41 2012
@@ -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





More information about the cfe-commits mailing list