diff options
author | midipix <writeonce@midipix.org> | 2019-01-01 01:04:21 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-01-01 01:07:40 -0500 |
commit | c6a6d5b275780ea070f91c049e4c32dd5c2bd84e (patch) | |
tree | d7cd0b29036ac04600bedad3948587f29a7954b9 /sofort | |
parent | 3542e2ea02a86e7bf3095144b7f53db2be94a339 (diff) | |
download | pemagine-c6a6d5b275780ea070f91c049e4c32dd5c2bd84e.tar.bz2 pemagine-c6a6d5b275780ea070f91c049e4c32dd5c2bd84e.tar.xz |
build system: ccenv: refined the os detection logic.
Diffstat (limited to 'sofort')
-rw-r--r-- | sofort/ccenv/ccenv.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh index 31b7dd5..c786f90 100644 --- a/sofort/ccenv/ccenv.sh +++ b/sofort/ccenv/ccenv.sh @@ -700,14 +700,19 @@ ccenv_set_os() case "$ccenv_cchost" in *-*-*-* ) - ccenv_tip=${ccenv_host%-*} + ccenv_tip=${ccenv_cchost%-*} ccenv_os=${ccenv_tip#*-*-} ;; - - *-*-* ) - ccenv_tip=${ccenv_host%-*} + *-*-musl | *-*-gnu ) + ccenv_tip=${ccenv_cchost%-*} ccenv_os=${ccenv_tip#*-} ;; + *-*-* ) + ccenv_os=${ccenv_cchost#*-*-} + ;; + *-* ) + ccenv_os=${ccenv_cchost#*-} + ;; esac if [ -z "$ccenv_os" ]; then |