depend-cleanup.sh: Need to delete jemalloc.3 in objtree

With the jemalloc.3 move into the tree (it's a generated file that we
don't/can't generate as part of the build), we need to remove it from
the .OBJDIR or make gets confused about how to build it (honestly for
reasons unknown).

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2024-12-13 10:46:59 -07:00
parent b55f5e1c4a
commit 42ee30f19c

View file

@ -231,3 +231,11 @@ clean_dep lib/libcrypt crypt-md5 c
clean_dep lib/libcrypt crypt-nthash c
clean_dep lib/libcrypt crypt-sha256 c
clean_dep lib/libcrypt crypt-sha512 c
# 20241213 b55f5e1c4ae3 jemalloc: Move generated jemalloc.3 into lib/libc tree
if [ -e "$OBJTOP"/lib/libc/jemalloc.3 ]; then
# Have to cleanup the jemalloc.3 in the obj tree since make gets
# confused and won't use the one in lib/libc/malloc/jemalloc/jemalloc.3
echo "Removing stale jemalloc.3 object"
run rm -f "$OBJTOP"/lib/libc/jemalloc.3
fi