Commit 132766f60b for perl
commit 132766f60bc5809c2219c475113228c9df6c0e38
Author: Andrew Hewus Fresh <afresh1@openbsd.org>
Date: Thu Sep 17 14:22:30 2026 -0700
Avoid linking unecessary libs
While libutil hasn't been necessary for even longer, libpthread
stopped being necessary with TIB work in 2016.
Originally from guenther@openbsd
diff --git a/hints/openbsd.sh b/hints/openbsd.sh
index e5833b3921..2be35bfe74 100644
--- a/hints/openbsd.sh
+++ b/hints/openbsd.sh
@@ -96,6 +96,9 @@ esac
# around for old NetBSD binaries.
libswanted=`echo $libswanted | sed 's/ crypt / /'`
+# OpenBSD hasn't ever needed linking to libutil
+libswanted=`echo $libswanted | sed 's/ util / /'`
+
# Configure can't figure this out non-interactively
d_suidsafe=$define
@@ -134,6 +137,9 @@ $define|true|[yY]*)
# Broken up to OpenBSD 3.6, fixed in OpenBSD 3.7
d_getservbyname_r=$undef ;;
esac
+ ;;
+*)
+ libswanted=`echo $libswanted | sed 's/ pthread / /'`
esac
EOCBU