mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-23 18:14:09 +08:00
build: Enforce address sanitisaton when debugging.
This commit is contained in:
parent
538b3073c4
commit
e23d415cba
4
configure
vendored
4
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user