summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2010-06-15 10:16:35 +0200
committerRafael Garcia-Suarez <rgs@consttype.org>2010-06-15 10:16:35 +0200
commit9b58b542ddb7ea24d774e7f780c8a19127be1f5a (patch)
treeb773380435740be8a17c3d62e2dd6d8bd6be72dd /hints
parentc35588eb09d732b01769aad7cf303e81b9417302 (diff)
downloadperl-9b58b542ddb7ea24d774e7f780c8a19127be1f5a.tar.gz
usemymalloc slows down newer openbsd [perl #75742]
Diffstat (limited to 'hints')
-rw-r--r--hints/openbsd.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/hints/openbsd.sh b/hints/openbsd.sh
index e4b1360d9a..f13091deee 100644
--- a/hints/openbsd.sh
+++ b/hints/openbsd.sh
@@ -8,8 +8,12 @@
# ./Configure -des -Dopenbsd_distribution=defined
#
-# OpenBSD has a better malloc than perl...
-test "$usemymalloc" || usemymalloc='n'
+# In OpenBSD > 3.7, use perl's malloc [perl #75742]
+case "$osvers" in
+3.[89]*|[4-9]*)
+ test "$usemymalloc" || usemymalloc=y
+ ;;
+esac
# malloc wrap works
case "$usemallocwrap" in