mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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
This commit is contained in:
parent
9cf92718e9
commit
d9ada3e4f8
2 changed files with 2 additions and 2 deletions
2
dist/buildmk
vendored
2
dist/buildmk
vendored
|
@ -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;;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# if you change this, also edit ../dist/buildmk
|
||||
SYSNAME=`uname`
|
||||
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;;
|
||||
|
|
Loading…
Reference in a new issue