From f329b15647c54a3abd8b4f65e9e972519b228524 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 30 Dec 2018 19:34:08 -0500 Subject: build system: ccenv: fix detection of native os. --- sofort/ccenv/ccenv.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sofort/ccenv') 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_' -- cgit v1.2.3