Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/rpcbind/tests/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
.PATH: ${.CURDIR}/.. | .PATH: ${.CURDIR}/.. | ||||
ATF_TESTS_C= addrmerge_test | ATF_TESTS_C= addrmerge_test | ||||
CFLAGS+= -I${.CURDIR:H} -Wno-cast-qual | CFLAGS+= -I${.CURDIR:H} -Wno-cast-qual | ||||
SRCS.addrmerge_test= addrmerge_test.c util.c | SRCS.addrmerge_test= addrmerge_test.c util.c | ||||
.if ${MK_INET6_SUPPORT} != "no" | .if ${MK_INET6_SUPPORT} != "no" | ||||
CFLAGS+= -DINET6 | CFLAGS+= -DINET6 | ||||
.endif | .endif | ||||
WARNS?= 3 | WARNS?= 3 | ||||
.if ${MK_ASAN} != "no" | |||||
# Work around "error: duplicate symbol: getifaddrs" when building with ASAN. | |||||
# The ASAN interceptors also define getifaddrs, but we want to prefer the local | |||||
# stub symbol here, so using a shared sanitizer runtime moves the local | |||||
# definition first in the symbol resolution order. | |||||
LDFLAGS+=-shared-libasan | |||||
.endif | |||||
.include <bsd.test.mk> | .include <bsd.test.mk> |