On Sun, 01 Jul 2012 20:21:00 -0400 Richard Yao <[email protected]> wrote:
> > + local arch=$(uname -m)
> > + case $(uname -m) in
I guess you have created 'local arch=' for a reason.
[no idea where you plan to use it, but] 'uname -m'
is fragile in croscompiler environments which you
seem to have touched in description.
'uname -m' usually breaks when you chroot to 32bits
on amd64 and don't use 'linux32 chroot'.
But again, I have no idea what MACHINE_CPUARCH is.
Switch based on ${ARCH} or ${CHOST} and overridable
by ${CTARGET} might fit you more.
--
Sergei
signature.asc
Description: PGP signature
