summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-02 20:32:30 -0500
committermidipix <writeonce@midipix.org>2018-12-10 20:35:55 -0500
commit8ce85a6885f991b4eb2c0897d630977f4adf3947 (patch)
treeab94656510983dd65743e8d08a63abb60dc06e13 /configure
parent019786b56996c2ea6b009f1e5dc9103bc041924a (diff)
downloadperk-8ce85a6885f991b4eb2c0897d630977f4adf3947.tar.bz2
perk-8ce85a6885f991b4eb2c0897d630977f4adf3947.tar.xz
build system: added NATIVE_CC_HOST support.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 8c4a4ab..e607fee 100755
--- a/configure
+++ b/configure
@@ -113,6 +113,8 @@ init_vars()
# overrides
mb_native_cc=$NATIVE_CC
+ mb_native_cc_host=$NATIVE_CC_HOST
+
mb_native_os=$NATIVE_OS
mb_native_os_bits=$NATIVE_OS_BITS
mb_native_os_underscore=$NATIVE_OS_UNDERSCORE
@@ -346,6 +348,10 @@ native_defaults()
mb_native_cc='false'
fi
+ if [ -z "$mb_native_cc_host" ]; then
+ mb_native_cc_host=$($mb_project_dir/sysinfo/host/host.sh --compiler=$mb_native_cc)
+ fi
+
if [ -z "$mb_compiler" ]; then
$mb_native_cc -dM -E - < /dev/null | grep -q '__clang__' && mb_compiler='clang'
fi
@@ -530,6 +536,8 @@ config_copy()
-e 's^@psdir@^'"$mb_psdir"'^g' \
\
-e 's^@native_cc@^'"$mb_native_cc"'^g' \
+ -e 's^@native_cc_host@^'"$mb_native_cc_host"'^g' \
+ \
-e 's^@native_os@^'"$mb_native_os"'^g' \
-e 's^@native_os_bits@^'"$mb_native_os_bits"'^g' \
-e 's^@native_os_underscore@^'"$mb_native_os_underscore"'^g' \