Index: lib/libc/Makefile =================================================================== --- lib/libc/Makefile +++ lib/libc/Makefile @@ -177,6 +177,12 @@ SUBDIR+= tests .endif +# 20170523 Remove stale generated asm files for functions which are no +# longer syscalls after r318736 +beforebuild: + @rm -f ${.OBJDIR}/getdents.[sS] ${.OBJDIR}/lstat.[sS] \ + ${.OBJDIR}/mknod.[sS] ${.OBJDIR}/stat.[sS] + .include .if !defined(_SKIP_BUILD)