diff options
author | Titus von Boxberg <titus@v9g.de> | 2010-05-19 18:17:39 +0200 |
---|---|---|
committer | Titus von Boxberg <titus@v9g.de> | 2010-05-19 18:17:39 +0200 |
commit | a85fc6dcb76d70b9afab975798bcdb6263450f3b (patch) | |
tree | 82ad16396eef1bdaacee3d6352fa6061f7b17e99 | |
parent | cf395e3876baa8e4e631763bfef2a39316354ba2 (diff) | |
download | crosstool-ng-a85fc6dcb76d70b9afab975798bcdb6263450f3b.tar.gz crosstool-ng-a85fc6dcb76d70b9afab975798bcdb6263450f3b.tar.bz2 crosstool-ng-a85fc6dcb76d70b9afab975798bcdb6263450f3b.zip |
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.
-rw-r--r-- | scripts/crosstool-NG.sh.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 30a82858..379f1701 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -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) |