crosstool-NG.sh: suppress failure message from uname -o

On non-GNU systems (BSD/MacOS) there is no uname -o.
Suppress the failure message on these systems in the
call to set CT_SYS_OS (uname -s actually sets this variable).

yann.morin.1998@anciens.enib.fr: remove 'uname -o' altogether.
This commit is contained in:
Titus von Boxberg 2010-05-19 18:17:39 +02:00
parent cf395e3876
commit a85fc6dcb7

View File

@ -194,8 +194,7 @@ CT_SYS_HOSTNAME=$(hostname -f 2>/dev/null || true)
CT_SYS_HOSTNAME="${CT_SYS_HOSTNAME:-$(uname -n)}"
CT_SYS_KERNEL=$(uname -s)
CT_SYS_REVISION=$(uname -r)
# uname -o is a GNU Extension. Others lack '-o' --> use System name for OS name.
CT_SYS_OS=$(uname -o || uname -s)
CT_SYS_OS=$(uname -s)
CT_SYS_MACHINE=$(uname -m)
CT_SYS_PROCESSOR=$(uname -p)
CT_SYS_GCC=$(gcc -dumpversion)