Index: projects/compiler-rt/make/platform/clang_darwin.mk =================================================================== --- projects/compiler-rt/make/platform/clang_darwin.mk +++ projects/compiler-rt/make/platform/clang_darwin.mk @@ -203,13 +203,13 @@ # Configure the asan_osx_dynamic library to be built shared. SHARED_LIBRARY.asan_osx_dynamic := 1 -LDFLAGS.asan_osx_dynamic := -lstdc++ -undefined dynamic_lookup +LDFLAGS.asan_osx_dynamic := -lstdc++ -undefined dynamic_lookup -install_name @rpath/libclang_rt.asan_osx_dynamic.dylib # Configure the asan_iossim_dynamic library to be built shared. SHARED_LIBRARY.asan_iossim_dynamic := 1 # configure+make uses Clang, so we're using isysroot instead of --sysroot # or -Wl,-syslibroot. -LDFLAGS.asan_iossim_dynamic := -undefined dynamic_lookup \ +LDFLAGS.asan_iossim_dynamic := -undefined dynamic_lookup -install_name @rpath/libclang_rt.asan_iossim_dynamic.dylib \ -Wl,-ios_simulator_version_min,7.0.0 \ -mios-simulator-version-min=7.0 -isysroot $(IOSSIM_SDK_PATH) Index: tools/clang/runtime/compiler-rt/Makefile =================================================================== --- tools/clang/runtime/compiler-rt/Makefile +++ tools/clang/runtime/compiler-rt/Makefile @@ -221,8 +221,6 @@ $(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