xref: /freebsd/usr.sbin/rpcbind/tests/Makefile (revision 9bc300465e48e19d794d88d0c158a2adb92c7197)
1.include <src.opts.mk>
2
3.PATH:	${.CURDIR}/..
4
5ATF_TESTS_C=	addrmerge_test
6CFLAGS+=	-I${.CURDIR:H} -Wno-cast-qual
7SRCS.addrmerge_test=	addrmerge_test.c util.c
8
9.if ${MK_INET6_SUPPORT} != "no"
10CFLAGS+= -DINET6
11.endif
12
13WARNS?=	3
14
15.if ${MK_ASAN} != "no"
16# Work around "error: duplicate symbol: getifaddrs" when building with ASAN.
17# The ASAN interceptors also define getifaddrs, but we want to prefer the local
18# stub symbol here, so using a shared sanitizer runtime moves the local
19# definition first in the symbol resolution order.
20LDFLAGS+=-shared-libasan
21.endif
22
23.include <bsd.test.mk>
24