diff options
author | midipix <writeonce@midipix.org> | 2018-12-30 19:34:08 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-30 19:37:23 -0500 |
commit | 46f33436f74b5eb7d62d9b38f81e6ca60534ba8e (patch) | |
tree | c2596c6b2d9261cf99ba690bf71fd31c5d8031f2 /sofort/ccenv | |
parent | 97f8b2393e6e10b6cc3945db0fd0a879bf6be0c8 (diff) | |
download | w32lib-46f33436f74b5eb7d62d9b38f81e6ca60534ba8e.tar.bz2 w32lib-46f33436f74b5eb7d62d9b38f81e6ca60534ba8e.tar.xz |
build system: ccenv: fix detection of native os.
Diffstat (limited to 'sofort/ccenv')
-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_' |