mirror of
https://github.com/falcosecurity/falco.git
synced 2026-02-21 22:27:51 +00:00
fix(cmake/modules): add DISABLE_RTLD_DEEPBIND when USE_ASAN is On
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
@@ -59,6 +59,10 @@ if(NOT MSVC)
|
||||
if(USE_ASAN)
|
||||
set(FALCO_SECURITY_FLAGS "${FALCO_SECURITY_FLAGS} -fsanitize=address")
|
||||
endif()
|
||||
# todo(leogr): this should be passed down to libs cmake modules RTLD_DEEPBIND flag is
|
||||
# incompatible with sanitizer runtime (see https://github.com/google/sanitizers/issues/611 for
|
||||
# details)
|
||||
add_compile_definitions(DISABLE_RTLD_DEEPBIND=$<IF:$<BOOL:${USE_ASAN}>,1,0>)
|
||||
|
||||
if(USE_UBSAN)
|
||||
set(FALCO_SECURITY_FLAGS "${FALCO_SECURITY_FLAGS} -fsanitize=undefined")
|
||||
|
||||
Reference in New Issue
Block a user