aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-03 14:51:28 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-03 14:51:28 -0500
commit5641d0c837985ba7f89d5efdc5e9c1873c403a57 (patch)
tree74b6c193c207a8fef91b99947cab0ff7c3f3de37
parent09b1d07d8bf9c712339d94653ebf077c94623a62 (diff)
Replace -ftrapv with -fsanitize=signed-integer-overflow
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e9484d80..2b8d2e18 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PREFIX=/usr/local
VERSION=0.12.1
-CCONFIG=-std=c11 -Werror -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -fPIC -ftrapv -fvisibility=hidden \
+CCONFIG=-std=c11 -Werror -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -fPIC -fsanitize=signed-integer-overflow -fno-sanitize-recover -fvisibility=hidden \
-flto=auto -fno-fat-lto-objects -Wl,-flto -fdollars-in-identifiers
LDFLAGS=-Wl,-rpath '-Wl,$$ORIGIN'
# MAKEFLAGS := --jobs=$(shell nproc) --output-sync=target