[compiler-rt] r221556 - Use @rpath for ASan dylib in Makefiles
Kuba Brecka
kuba.brecka at gmail.com
Fri Nov 7 14:27:12 PST 2014
Author: kuba.brecka
Date: Fri Nov 7 16:27:12 2014
New Revision: 221556
URL: http://llvm.org/viewvc/llvm-project?rev=221556&view=rev
Log:
Use @rpath for ASan dylib in Makefiles
Reviewed at http://reviews.llvm.org/D6176
Modified:
compiler-rt/trunk/make/platform/clang_darwin.mk
Modified: compiler-rt/trunk/make/platform/clang_darwin.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=221556&r1=221555&r2=221556&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/clang_darwin.mk (original)
+++ compiler-rt/trunk/make/platform/clang_darwin.mk Fri Nov 7 16:27:12 2014
@@ -203,13 +203,13 @@ CFLAGS.profile_ios.arm64 := $(CFLAGS) $
# 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)
More information about the llvm-commits
mailing list