Blob
- Date:
- Message:
- 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
- Actions:
- History | Blame | Raw File
1 # if you change this, also edit ../dist/buildmk2 SYSNAME=`uname`3 OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed '4 s;.*i[3-6]86.*;386;;5 s;.*i86pc.*;386;;6 s;.*amd64.*;x86_64;;7 s;.*x86_64.*;x86_64;;8 s;.*armv.*;arm;g;9 s;.*powerpc.*;power;g;10 s;.*PowerMacintosh.*;power;g;11 s;.*macppc.*;power;g;12 s;.*ppc64.*;power;g;13 s;.*ppc.*;power;g;14 s;.*alpha.*;alpha;g;15 s;.*sun4u.*;sun4u;g;16 '`18 BIN=$PLAN9/bin19 LIBDIR=$PLAN9/lib21 O=o22 OS=$O24 CC=9c25 #CC=9r26 LD=9l27 AS=9a28 AR=9ar29 INSTALL=install30 CFLAGS=31 LDFLAGS=32 AFLAGS=33 CLEANFILES=34 NUKEFILES=35 YACC=9 yacc36 LEX=9 lex37 YFLAGS=-d38 LIB=39 SHORTLIB=941 <|cat $PLAN9/src/mk.$SYSNAME-$OBJTYPE 2>/dev/null || true