summaryrefslogtreecommitdiff
path: root/hints/openbsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/openbsd.sh')
-rw-r--r--hints/openbsd.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/hints/openbsd.sh b/hints/openbsd.sh
index 3b73578a9d..823d744c40 100644
--- a/hints/openbsd.sh
+++ b/hints/openbsd.sh
@@ -30,9 +30,8 @@ d_setruid=$undef
# 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
;;
*)
@@ -71,7 +70,7 @@ 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
+case `arch -s` in
m88k)
optimize='-O0'
;;