# $NetBSD: Makefile,v 1.8.16.1 2019/08/19 15:47:00 martin Exp $ # .include TESTSDIR= ${TESTSBASE}/rump/modautoload TESTS_C= t_modautoload PAXCTL_FLAGS= +ma SRCS.t_modautoload+= t_modautoload.c # Note: we link the rump kernel into the application to make this work # on amd64. This is the reason we keep this test in its own # subdirectory -- otherwise the LDADD lines would get a little hairy. LDFLAGS+= -Wl,-E LDADD+= -Wl,--whole-archive ${DESTDIR}/usr/lib/librumpvfs.a \ ${DESTDIR}/usr/lib/librump.a \ -Wl,--no-whole-archive LDADD+= -lrumpuser -lpthread DPADD+= ${LIBRUMPVFS} ${LIBRUMP} ${LIBRUMPUSER} WARNS= 4 # To include a rump version of sysctlbyname() .PATH: ${NETBSDSRCDIR}/lib/libc/gen SRCS.t_modautoload+= sysctlbyname.c SRCS.t_modautoload+= sysctlgetmibinfo.c CPPFLAGS+= -DRUMP_ACTION SANITIZER_RENAME_CLASSES+= t_modautoload SANITIZER_RENAME_FILES.t_modautoload+= ${SRCS.t_modautoload} SANITIZER_RENAME_SYMBOL.t_modautoload+= sysctlbyname SANITIZER_RENAME_SYMBOL.t_modautoload+= sysctlgetmibinfo .include