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