2016-01-05 19:00:11 -05:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
|
|
.include <src.opts.mk>
|
|
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/..
|
|
|
|
|
|
|
|
|
|
ATF_TESTS_C= addrmerge_test
|
2017-03-04 06:38:03 -05:00
|
|
|
CFLAGS+= -I${.CURDIR:H} -Wno-cast-qual
|
2016-01-05 19:00:11 -05:00
|
|
|
SRCS.addrmerge_test= addrmerge_test.c util.c
|
|
|
|
|
|
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
|
CFLAGS+= -DINET6
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
WARNS?= 3
|
|
|
|
|
|
2021-08-02 04:49:50 -04:00
|
|
|
.if ${MK_ASAN} != "no"
|
|
|
|
|
# Work around "error: duplicate symbol: getifaddrs" when building with ASAN.
|
|
|
|
|
# The ASAN interceptors also define getifaddrs, but we want to prefer the local
|
|
|
|
|
# stub symbol here, so using a shared sanitizer runtime moves the local
|
|
|
|
|
# definition first in the symbol resolution order.
|
|
|
|
|
LDFLAGS+=-shared-libasan
|
|
|
|
|
.endif
|
|
|
|
|
|
2016-01-05 19:00:11 -05:00
|
|
|
.include <bsd.test.mk>
|