changeset 1695:93e738ef0d9d

Avoid oss-fuzz $SANITIZER causing wrong build https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22608
author Matt Johnston <matt@ucc.asn.au>
date Wed, 27 May 2020 20:33:45 +0800
parents 39534eedf429
children ef57ead04987
files libtommath/makefile_include.mk
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libtommath/makefile_include.mk	Wed May 27 00:05:15 2020 +0800
+++ b/libtommath/makefile_include.mk	Wed May 27 20:33:45 2020 +0800
@@ -50,7 +50,8 @@
 
 LTM_CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow
 
-ifdef SANITIZER
+# renamed for Dropbear to avoid clash with oss-fuzz $SANITIZER var
+ifdef LTM_SANITIZER
 LTM_CFLAGS += -fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=float-divide-by-zero
 endif