mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Fix up OBJTYPE on 64-bit x86 FreeBSD machines.
This commit is contained in:
parent
0f172593a3
commit
10ff532fdc
3 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
../bin/mk: mkmk.sh
|
||||
SYSNAME=`uname` export SYSNAME; \
|
||||
OBJTYPE=`uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g; s/PowerMacintosh/power/; s/ppc64/power/g; s/ppc/power/g'` export OBJTYPE; \
|
||||
OBJTYPE=`uname -m | sed 's;i.86;386;; s;amd64;x86_64;; s;/.*;;; s; ;;g; s/PowerMacintosh/power/; s/ppc64/power/g; s/ppc/power/g'` export OBJTYPE; \
|
||||
PATH=`pwd`/../bin:$$PATH export PATH; \
|
||||
PLAN9=`pwd`/.. export PLAN9; \
|
||||
sh -x mkmk.sh
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
SYSNAME=`uname`
|
||||
OBJTYPE=`uname -m | sed '
|
||||
s;i.86;386;;
|
||||
s;amd64;x86_64;;
|
||||
s;/.*;;;
|
||||
s; ;;g;
|
||||
s;PowerMacintosh;power;g;
|
||||
|
|
|
@ -5,7 +5,7 @@ OBJTYPE:=${shell uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g'}
|
|||
|
||||
# this works in bsd make
|
||||
SYSNAME!=uname
|
||||
OBJTYPE!=uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g'
|
||||
OBJTYPE!=uname -m | sed 's;i.86;386;; s;amd64;x864_64;; s;/.*;;; s; ;;g'
|
||||
|
||||
# the gnu rules will mess up bsd but not vice versa,
|
||||
# hence the gnu rules come first.
|
||||
|
|
Loading…
Reference in a new issue