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