diff options
author | Richard Miller <millerresearch@gmail.com> | 2011-05-18 13:21:40 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-05-18 13:21:40 -0400 |
commit | d9ada3e4f865ba649c09b3ce95bf409dff8c117e (patch) | |
tree | b1d8db97642d9ecbf2751e05d12881b79ce34df8 /dist/buildmk | |
parent | 9cf92718e9f2e82c7d1f2a896b5c93b01f1ad073 (diff) | |
download | plan9port-d9ada3e4f865ba649c09b3ce95bf409dff8c117e.tar.gz plan9port-d9ada3e4f865ba649c09b3ce95bf409dff8c117e.tar.bz2 plan9port-d9ada3e4f865ba649c09b3ce95bf409dff8c117e.zip |
build: fix for non-standard uname
The scratchbox-based SDK for maemo cross-compilation (for Nokia N800 and N900) has a non-standard uname command which doesn't support the '-p' option. This patch allows INSTALL to work anyway, by issuing 'uname -m' if 'uname -m -p' fails.
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4554041
Diffstat (limited to 'dist/buildmk')
-rwxr-xr-x | dist/buildmk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/buildmk b/dist/buildmk index ff2f0b67..cfb7826c 100755 --- a/dist/buildmk +++ b/dist/buildmk @@ -2,7 +2,7 @@ # run this in the src directory SYSNAME=`uname` export SYSNAME -OBJTYPE=`uname -m -p | sed ' +OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed ' s;.*i[3-6]86.*;386;; s;.*i86pc.*;386;; s;.*amd64.*;x86_64;; |