Chromium Code Reviews| Index: tools/clang/scripts/package.sh |
| =================================================================== |
| --- tools/clang/scripts/package.sh (revision 176906) |
| +++ tools/clang/scripts/package.sh (working copy) |
| @@ -64,6 +64,11 @@ |
| # Keep only Release+Asserts/lib/clang/3.2/lib/darwin/libclang_rt.asan_osx.a |
| find "${LLVM_LIB_DIR}/clang" -type f -path '*lib/darwin*' | grep -v asan | \ |
| xargs rm |
| + # Fix LC_ID_DYLIB for the ASan dynamic library to be relative to |
| + # @executable_path. |
| + ASAN_DYLIB_NAME=libclang_rt.asan_osx_dynamic.dylib |
| + ASAN_DYLIB=`find "${LLVM_LIB_DIR}/clang" -type f -path *"${ASAN_DYLIB_NAME}"` |
|
Nico
2013/01/22 16:13:21
Use $() instead of ``. Doesn't the '*' have to be
|
| + install_name_tool -id @executable_path/${ASAN_DYLIB} "${ASAN_DYLIB}" |
|
Nico
2013/01/22 16:13:21
quotes for the first ${ASAN_DYLIB} too
|
| else |
| # Keep only |
| # Release+Asserts/lib/clang/3.2/lib/linux/libclang_rt.{asan,tsan}-x86_64.a |