summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/hints
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/perl/hints')
-rw-r--r--gnu/usr.bin/perl/hints/openbsd.sh33
1 files changed, 18 insertions, 15 deletions
diff --git a/gnu/usr.bin/perl/hints/openbsd.sh b/gnu/usr.bin/perl/hints/openbsd.sh
index e4b1360d9ad..d4f45def2cd 100644
--- a/gnu/usr.bin/perl/hints/openbsd.sh
+++ b/gnu/usr.bin/perl/hints/openbsd.sh
@@ -11,11 +11,6 @@
# OpenBSD has a better malloc than perl...
test "$usemymalloc" || usemymalloc='n'
-# malloc wrap works
-case "$usemallocwrap" in
-'') usemallocwrap='define' ;;
-esac
-
# Currently, vfork(2) is not a real win over fork(2).
usevfork="$undef"
@@ -40,7 +35,7 @@ esac
#
ARCH=`arch | sed 's/^OpenBSD.//'`
case "${ARCH}-${osvers}" in
-alpha-2.[0-8]|mips-2.[0-8]|powerpc-2.[0-7]|m88k-*|hppa-*|vax-*)
+alpha-2.[0-8]|mips-2.[0-8]|powerpc-2.[0-7]|m88k-*|hppa-3.[0-5]|vax-*)
test -z "$usedl" && usedl=$undef
;;
*)
@@ -80,6 +75,14 @@ case "$osvers" in
;;
esac
+# malloc wrap causes problems on m68k
+if [ X"$usemallocwrap" = X"" ]; then
+ case "${ARCH}" in
+ m68k) usemallocwrap="$undef" ;;
+ *) usemallocwrap="define" ;;
+ esac
+fi
+
# OpenBSD doesn't need libcrypt but many folks keep a stub lib
# around for old NetBSD binaries.
libswanted=`echo $libswanted | sed 's/ crypt / /'`
@@ -89,12 +92,12 @@ d_suidsafe=$define
# cc is gcc so we can do better than -O
# Allow a command-line override, such as -Doptimize=-g
-case ${ARCH} in
-m88k)
- optimize='-O0'
+case "${ARCH}-${osvers}" in
+hppa-3.3|m88k-2.*|m88k-3.[0-3])
+ test "$optimize" || optimize='-O0'
;;
-hppa)
- optimize='-O0'
+m88k-3.4)
+ test "$optimize" || optimize='-O1'
;;
*)
test "$optimize" || optimize='-O2'
@@ -118,8 +121,8 @@ $define|true|[yY]*)
;;
esac
case "$osvers" in
- [012].*|3.[0-6])
- # Broken at least up to OpenBSD 3.6, we'll see about 3.7
+ [012].*|3.[0-5])
+ # Broken up to OpenBSD 3.6, fixed in OpenBSD 3.7
d_getservbyname_r=$undef ;;
esac
esac
@@ -202,9 +205,9 @@ case "$openbsd_distribution" in
locincpth='/usr/local/include'
loclibpth='/usr/local/lib'
# Link perl with shared libperl
- if [ "$usedl" = "$define" -a -r shlib_version ]; then
+ if [ "$usedl" = "$define" -a -r $src/shlib_version ]; then
useshrplib=true
- libperl=`. ./shlib_version; echo libperl.so.${major}.${minor}`
+ libperl=`. $src/shlib_version; echo libperl.so.${major}.${minor}`
fi
;;
esac