aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-12-13 17:46:59 +0000
committerWarner Losh <imp@FreeBSD.org>2024-12-13 23:04:34 +0000
commit42ee30f19cc7ad85187cbf97155dbd5207a04845 (patch)
tree226a1f023d05b6ba85ba255202aa586adfe975a5
parentb55f5e1c4ae375d92dfd597901f238a230e868da (diff)
-rwxr-xr-xtools/build/depend-cleanup.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/build/depend-cleanup.sh b/tools/build/depend-cleanup.sh
index 6e7585f0afe6..81acf517f9d7 100755
--- a/tools/build/depend-cleanup.sh
+++ b/tools/build/depend-cleanup.sh
@@ -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