diff options
author | midipix <writeonce@midipix.org> | 2018-12-30 19:34:08 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-30 19:37:22 -0500 |
commit | b3a29a364cddd7c105faa3bf382f65e01c899268 (patch) | |
tree | 75b9d28774b09e3c2a92fd43b47bd89d43e6b5b0 /sofort | |
parent | dee5eebcc15e8cb374498a5aa8b2dc4d25c34cb4 (diff) | |
download | ntux-b3a29a364cddd7c105faa3bf382f65e01c899268.tar.bz2 ntux-b3a29a364cddd7c105faa3bf382f65e01c899268.tar.xz |
build system: ccenv: fix detection of native os.
Diffstat (limited to 'sofort')
-rw-r--r-- | sofort/ccenv/ccenv.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh index 91d9309..354dd90 100644 --- a/sofort/ccenv/ccenv.sh +++ b/sofort/ccenv/ccenv.sh @@ -284,6 +284,8 @@ ccenv_set_cc() ccenv_cc_cmd="$ccenv_cc" if [ "$ccenv_cfgtype" = 'native' ]; then + ccenv_host=$($ccenv_cc $ccenv_cflags -dumpmachine 2>/dev/null) + ccenv_cchost=$ccenv_host return 0 fi @@ -947,6 +949,7 @@ ccenv_common_init() ccenv_cfgtype=$1 ccenv_cfgfile="$mb_pwd/ccenv/$ccenv_cfgtype.mk" ccenv_freestd= + ccenv_cchost= if [ $ccenv_cfgtype = 'native' ]; then ccenv_makevar_prefix='NATIVE_' |