forked from OSchip/llvm-project
[scudo] Add SANITIZER_CXX_ABI_LIBRARY to SCUDO_DYNAMIC_LIBS
Summary: This is needed for the shared runtime since we are pulling RTUbsan in. Otherwise some builds might fail with errors such as: `error: undefined reference to '__dynamic_cast'` Reviewers: alekseyshl, srhines Reviewed By: srhines Subscribers: kongyi, pirama, chh, mgorny, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D41995 llvm-svn: 322389
This commit is contained in:
parent
5068685678
commit
0bf9c5eee5
|
@ -32,7 +32,8 @@ if (COMPILER_RT_HAS_MCRC_FLAG)
|
|||
endif()
|
||||
|
||||
if(COMPILER_RT_HAS_SCUDO)
|
||||
set(SCUDO_DYNAMIC_LIBS ${SANITIZER_COMMON_LINK_LIBS})
|
||||
set(SCUDO_DYNAMIC_LIBS ${SANITIZER_CXX_ABI_LIBRARY}
|
||||
${SANITIZER_COMMON_LINK_LIBS})
|
||||
append_list_if(COMPILER_RT_HAS_LIBDL dl SCUDO_DYNAMIC_LIBS)
|
||||
append_list_if(COMPILER_RT_HAS_LIBRT rt SCUDO_DYNAMIC_LIBS)
|
||||
append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread SCUDO_DYNAMIC_LIBS)
|
||||
|
|
Loading…
Reference in New Issue