Index: stand/userboot/test/Makefile =================================================================== --- stand/userboot/test/Makefile +++ stand/userboot/test/Makefile @@ -4,6 +4,10 @@ PROG= test INTERNALPROG= +.if ${MK_ASAN} != "no" || ${MK_UBSAN} != "no" +# Avoid linking against a possibly sanitizer-instrumented libgcc_s.so +NO_SHARED=yes +.endif CFLAGS= -I${BOOTSRC}/userboot