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