From 3981430f541098982b2e39d85c6f12fe0d6a5bdf Mon Sep 17 00:00:00 2001 From: Peter Dillinger Date: Mon, 14 Jun 2021 12:15:07 -0700 Subject: [PATCH] Fix runtime linkage with libasan in Facebook platform009 (#8402) Summary: Was seeing ./cache_test: error while loading shared libraries: libasan.so.5: cannot open shared object file: No such file or directory etc. using COMPILE_WITH_ASAN=1 without USE_CLANG=1 Now including compiler libs in runtime ld path. Pull Request resolved: https://github.com/facebook/rocksdb/pull/8402 Test Plan: reproduced with local builds Reviewed By: akankshamahajan15 Differential Revision: D29107729 Pulled By: pdillinger fbshipit-source-id: 13805b87b846b39522c9dd6a231ca245c58f1c71 --- build_tools/fbcode_config_platform009.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build_tools/fbcode_config_platform009.sh b/build_tools/fbcode_config_platform009.sh index 772e2ea81a..82c85b09c1 100644 --- a/build_tools/fbcode_config_platform009.sh +++ b/build_tools/fbcode_config_platform009.sh @@ -154,6 +154,7 @@ EXEC_LDFLAGS+=" -B$BINUTILS" EXEC_LDFLAGS+=" -Wl,--dynamic-linker,/usr/local/fbcode/platform009/lib/ld.so" EXEC_LDFLAGS+=" $LIBUNWIND" EXEC_LDFLAGS+=" -Wl,-rpath=/usr/local/fbcode/platform009/lib" +EXEC_LDFLAGS+=" -Wl,-rpath=$GCC_BASE/lib64" # required by libtbb EXEC_LDFLAGS+=" -ldl"