summaryrefslogtreecommitdiff
path: root/sofort/ccenv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-30 19:34:08 -0500
committermidipix <writeonce@midipix.org>2018-12-31 21:37:15 -0500
commit5b51ca3a6bb4c9299c12debf6b1a98dbaaab87e4 (patch)
tree3efc44a7f5974e47651c6d3d0d9ac15abdd5c5d0 /sofort/ccenv
parent711507d9aebeb2dd0f6b19ba96115cdec57e3946 (diff)
downloadperk-5b51ca3a6bb4c9299c12debf6b1a98dbaaab87e4.tar.bz2
perk-5b51ca3a6bb4c9299c12debf6b1a98dbaaab87e4.tar.xz
build system: ccenv: fix detection of native os.
Diffstat (limited to 'sofort/ccenv')
-rw-r--r--sofort/ccenv/ccenv.sh3
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_'