aboutsummaryrefslogtreecommitdiff
path: root/cmake/libgav1_sanitizer.cmake
diff options
context:
space:
mode:
authorqinxialei <xialeiqin@gmail.com>2021-04-22 11:20:18 +0800
committerqinxialei <xialeiqin@gmail.com>2021-04-22 11:20:18 +0800
commit81ce37eb93e8ce442ecb1855a4e7166628128ac7 (patch)
tree2af6329f74f88ce090d08c61db5fb4bed8656584 /cmake/libgav1_sanitizer.cmake
parent4dab0c756a3cdd65b43470a4cca835422b32ca6e (diff)
parent2381d803c76105f44717d75f089ec37f51e5cfe4 (diff)
downloadlibgav1-81ce37eb93e8ce442ecb1855a4e7166628128ac7.tar.gz
libgav1-81ce37eb93e8ce442ecb1855a4e7166628128ac7.tar.bz2
libgav1-81ce37eb93e8ce442ecb1855a4e7166628128ac7.zip
Update upstream source from tag 'upstream/0.16.3'
Update to upstream version '0.16.3' with Debian dir a433e04a69210eb8fcdd6089240e161eb33f0590
Diffstat (limited to 'cmake/libgav1_sanitizer.cmake')
-rw-r--r--cmake/libgav1_sanitizer.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/libgav1_sanitizer.cmake b/cmake/libgav1_sanitizer.cmake
index 4bb2263..2f9ee07 100644
--- a/cmake/libgav1_sanitizer.cmake
+++ b/cmake/libgav1_sanitizer.cmake
@@ -39,7 +39,9 @@ macro(libgav1_configure_sanitizer)
list(APPEND LIBGAV1_CXX_FLAGS "-fno-omit-frame-pointer"
"-fno-optimize-sibling-calls")
- libgav1_test_cxx_flag(FLAG_LIST_VAR_NAMES LIBGAV1_CXX_FLAGS FLAG_REQUIRED)
+ # Check the linker flags first as they may be required in the compile check
+ # to avoid undefined symbols related to the sanitizer.
libgav1_test_exe_linker_flag(FLAG_LIST_VAR_NAME LIBGAV1_EXE_LINKER_FLAGS)
+ libgav1_test_cxx_flag(FLAG_LIST_VAR_NAMES LIBGAV1_CXX_FLAGS FLAG_REQUIRED)
endif()
endmacro()