summaryrefslogtreecommitdiff
path: root/devel/bmake
diff options
context:
space:
mode:
authorryoon <ryoon>2013-07-30 12:27:20 +0000
committerryoon <ryoon>2013-07-30 12:27:20 +0000
commit3b63f95bb6749a97b7ad4d1cdeec160102d45629 (patch)
treed626cc006c1714f75655b1eee186cc9caeea6a4f /devel/bmake
parent75114a7bbb1a9105d17a9f1c9ab87d9963da73a8 (diff)
downloadpkgsrc-3b63f95bb6749a97b7ad4d1cdeec160102d45629.tar.gz
Fix build under Cygwin64.
* Treat uname -p = unknown like machine.sh, use uname -m instead.
Diffstat (limited to 'devel/bmake')
-rw-r--r--devel/bmake/files/os.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/bmake/files/os.sh b/devel/bmake/files/os.sh
index c773b16a272..ee37aaffa15 100644
--- a/devel/bmake/files/os.sh
+++ b/devel/bmake/files/os.sh
@@ -17,7 +17,7 @@
# Simon J. Gerraty <sjg@crufty.net>
# RCSid:
-# $Id: os.sh,v 1.7 2013/07/26 09:38:15 ryoon Exp $
+# $Id: os.sh,v 1.8 2013/07/30 12:27:20 ryoon Exp $
#
# @(#) Copyright (c) 1994 Simon J. Gerraty
#
@@ -44,7 +44,7 @@ MACHINE_ARCH=`uname -p 2>/dev/null || echo $MACHINE`
# there is at least one case of `uname -p` outputting
# a bunch of usless drivel
case "$MACHINE_ARCH" in
-*[!A-Za-z0-9_-]*) MACHINE_ARCH="$MACHINE";;
+unknown|*[!A-Za-z0-9_-]*) MACHINE_ARCH="$MACHINE";;
esac
# we need this here, and it is not always available...