mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-31 00:26:48 +00:00
Makefile: flags for ASAN
This commit is contained in:
parent
2c4acd0d50
commit
2066ccbbdb
@ -1,4 +1,4 @@
|
|||||||
# $Id: Makefile,v 1.134 2016/10/07 09:04:36 nanard Exp $
|
# $Id: Makefile,v 1.144 2021/08/21 10:43:37 nanard Exp $
|
||||||
# MiniUPnP Project
|
# MiniUPnP Project
|
||||||
# http://miniupnp.free.fr/
|
# http://miniupnp.free.fr/
|
||||||
# https://miniupnp.tuxfamily.org/
|
# https://miniupnp.tuxfamily.org/
|
||||||
@ -29,7 +29,12 @@ export HAVE_IPV6
|
|||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
#AR = gar
|
#AR = gar
|
||||||
#CFLAGS = -O -g -DDEBUG
|
#CFLAGS = -O -g
|
||||||
|
# to debug :
|
||||||
|
ASANFLAGS = -fsanitize=address -fsanitize=undefined -fsanitize=leak
|
||||||
|
#CFLAGS = -g -ggdb -O0 $(ASANFLAGS) -fno-omit-frame-pointer
|
||||||
|
#CPPFLAGS += -DDEBUG
|
||||||
|
#LDFLAGS += $(ASANFLAGS)
|
||||||
CFLAGS ?= -O
|
CFLAGS ?= -O
|
||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
CFLAGS += -W -Wstrict-prototypes
|
CFLAGS += -W -Wstrict-prototypes
|
||||||
@ -47,6 +52,7 @@ CPPFLAGS += -D_XOPEN_SOURCE=600
|
|||||||
endif
|
endif
|
||||||
#CFLAGS += -ansi
|
#CFLAGS += -ansi
|
||||||
#CPPFLAGS += -DNO_GETADDRINFO
|
#CPPFLAGS += -DNO_GETADDRINFO
|
||||||
|
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
SH = /bin/sh
|
SH = /bin/sh
|
||||||
JAVA = java
|
JAVA = java
|
||||||
|
Loading…
x
Reference in New Issue
Block a user