summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2024-05-09 01:20:06 -0400
committerPaul Duncan <pabs@pablotron.org>2024-05-09 01:20:06 -0400
commitfa6408796693f7324371951c5b16f67d6196bad8 (patch)
tree526f2a6a311b80b962c6fa5f62112b7c12c69801
parent976ec83f90442bc4c8aaa04c55daedcc56b04473 (diff)
downloadsha3-fa6408796693f7324371951c5b16f67d6196bad8.tar.bz2
sha3-fa6408796693f7324371951c5b16f67d6196bad8.zip
Makefile: remove -fsanitize=leak (not supported in macos)
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6172393..b930394 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,16 @@ LIB=libsha3.so
LIB_OBJS=sha3.o
# test app (test suite and sanitizers)
-TEST_CFLAGS=-g -fsanitize=address,pointer-compare,pointer-subtract,undefined,leak -W -Wall -Wextra -Werror -pedantic -std=c11 -march=native -mtune=native -DBACKEND=$(BACKEND)
+#
+# note: some older versions of GCC may have trouble with these sanitizer
+# options. if the compiler is giving you grief, try changing the
+# "-fsanitize" parameter to "-fsanitize=undefined" or removing the
+# "-fsanitize" parameter completely
+#
+# as noted in https://github.com/pablotron/fips203ipd/issues/1, macos
+# clang and gcc do not support -fsanitize=leak, so i have removed it for
+# now
+TEST_CFLAGS=-g -fsanitize=address,pointer-compare,pointer-subtract,undefined -W -Wall -Wextra -Werror -pedantic -std=c11 -march=native -mtune=native -DBACKEND=$(BACKEND)
TEST_APP=./test-sha3
.PHONY=test all