mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-29 15:44:03 +00:00
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:
parent
cf395e3876
commit
a85fc6dcb7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user