1a85f1232SAlan Somers
2a85f1232SAlan Somers.include <src.opts.mk>
3a85f1232SAlan Somers
4a85f1232SAlan Somers.PATH:	${.CURDIR}/..
5a85f1232SAlan Somers
6a85f1232SAlan SomersATF_TESTS_C=	addrmerge_test
764a0982bSEnji CooperCFLAGS+=	-I${.CURDIR:H} -Wno-cast-qual
8a85f1232SAlan SomersSRCS.addrmerge_test=	addrmerge_test.c util.c
9a85f1232SAlan Somers
10a85f1232SAlan Somers.if ${MK_INET6_SUPPORT} != "no"
11a85f1232SAlan SomersCFLAGS+= -DINET6
12a85f1232SAlan Somers.endif
13a85f1232SAlan Somers
14a85f1232SAlan SomersWARNS?=	3
15a85f1232SAlan Somers
16*c826e088SAlex Richardson.if ${MK_ASAN} != "no"
17*c826e088SAlex Richardson# Work around "error: duplicate symbol: getifaddrs" when building with ASAN.
18*c826e088SAlex Richardson# The ASAN interceptors also define getifaddrs, but we want to prefer the local
19*c826e088SAlex Richardson# stub symbol here, so using a shared sanitizer runtime moves the local
20*c826e088SAlex Richardson# definition first in the symbol resolution order.
21*c826e088SAlex RichardsonLDFLAGS+=-shared-libasan
22*c826e088SAlex Richardson.endif
23*c826e088SAlex Richardson
24a85f1232SAlan Somers.include <bsd.test.mk>
25