diff options
| author | Roy Marples <roy@marples.name> | 2019-11-03 23:24:09 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-11-03 23:24:09 +0000 |
| commit | 8830ff90cdef42d8c7e76295c51652e1ddca4e25 (patch) | |
| tree | d419da63dfbf31f6e7eaa6902f2f7c3451b720b2 /configure | |
| parent | 9ffb2a62630662bf060769896230f38ad7a98390 (diff) | |
| download | dhcpcd-8830ff90cdef42d8c7e76295c51652e1ddca4e25.tar.xz | |
build: Enforce address sanitisaton when debugging.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -375,6 +375,10 @@ fi if [ -n "$DEBUG" -a "$DEBUG" != no -a "$DEBUG" != false ]; then echo "Adding debugging CFLAGS" cat <<EOF >>$CONFIG_MK +# Enforce address sanitization +CFLAGS+= -fsanitize=address +LDFLAGS+= -fsanitize=address + CFLAGS+= -g -Wall -Wextra CFLAGS+= -Wmissing-prototypes -Wmissing-declarations CFLAGS+= -Wmissing-format-attribute -Wnested-externs |
