From b9e801590492609eb5cc777c8bac8d643ab7a388 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 24 May 2021 16:18:27 +0800 Subject: [PATCH] cmake/modules/FindSanitizers: prefer libasan.6 libasan.6 is shipped as part of GCC-11, so prefer it over older versions Signed-off-by: Kefu Chai --- cmake/modules/FindSanitizers.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/FindSanitizers.cmake b/cmake/modules/FindSanitizers.cmake index fafd48124051e..41483d5a6596d 100644 --- a/cmake/modules/FindSanitizers.cmake +++ b/cmake/modules/FindSanitizers.cmake @@ -34,6 +34,7 @@ if(Sanitizers_address_COMPILE_OPTIONS OR Sanitizers_leak_COMPILE_OPTIONS) # ASAN_LIBRARY will be read by ceph.in to preload the asan library find_library(ASAN_LIBRARY NAMES + libasan.so.6 libasan.so.5 libasan.so.4 libasan.so.3) -- 2.39.5