From 984ac60315a3aabfbdc60a3554299bf12d3f7607 Mon Sep 17 00:00:00 2001 From: arichardson Date: Sun, 18 Nov 2018 19:55:03 +0000 Subject: [PATCH] Fix -DNO_CLEAN amd64 build after r340463 Without this change I got the following error: clang-7: error: no such file or directory: '..../lib/libc/amd64/string/bzero.S' Reviewed By: mjg Differential Revision: https://reviews.freebsd.org/D18031 --- Makefile.inc1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index d54d26b1ad7..da6aec1e12d 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -962,6 +962,13 @@ _cleanobj_fast_depend_hack: .PHONY ${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libc/.depend.${f}.*}; \ fi .endfor +# 20181115 r340463 bzero reimplemented as .c + @if [ -e "${OBJTOP}/lib/libc/.depend.bzero.o" ] && \ + egrep -qw 'bzero\.[sS]' ${OBJTOP}/lib/libc/.depend.bzero.o; then \ + echo "Removing stale dependencies for bzero"; \ + rm -f ${OBJTOP}/lib/libc/.depend.bzero.* \ + ${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libc/.depend.bzero.*}; \ + fi # 20181009 track migration from ntp's embedded libevent to updated one @if [ -e "${OBJTOP}/usr.sbin/ntp/libntpevent/.depend.bufferevent_openssl.o" ] && \ egrep -q 'contrib/ntp/sntp/libevent/bufferevent_openssl.c' \ -- 2.45.0