# HG changeset patch # User Titus von Boxberg # Date 1274285859 -7200 # Node ID acae437fddccd7681c93a3b6c999c0796693d625 # Parent a93af06e180d11e93d2d58543cd03c156feaeba3 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. diff -r a93af06e180d -r acae437fddcc scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Sun May 16 19:41:53 2010 +0200 +++ b/scripts/crosstool-NG.sh.in Wed May 19 18:17:39 2010 +0200 @@ -194,8 +194,7 @@ 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)