# it can set the libperl name appropriately.
# Allow command line overrides.
#
-ARCH=`arch|sed 's/^OpenBSD.//'`
-case "${ARCH}-${osvers}" in
-alpha-*|mips-*|vax-*|powerpc-2.[0-7]|m88k-*)
+case "`arch -s`-${osvers}" in
+alpha-2.[0-8]|mips-*|vax-*|powerpc-2.[0-7]|m88k-*)
test -z "$usedl" && usedl=$undef
;;
*)
# cc is gcc so we can do better than -O
# Allow a command-line override, such as -Doptimize=-g
-case "$ARCH" in
+case `arch -s` in
m88k)
optimize='-O0'
;;
# any openbsd version dependencies with pthreads?
ccflags="-pthread $ccflags"
ldflags="-pthread $ldflags"
+ # Add -lpthread. Also change from -lc to -lc_r
libswanted="$libswanted pthread"
+ libswanted=`echo " $libswanted "| sed -e 's/ c / c_r /' -e 's/^ //' -e 's/ $//'`
# This is strange.
usevfork="$undef"
esac