diff options
author | midipix <writeonce@midipix.org> | 2018-12-23 04:27:44 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-24 10:52:05 -0500 |
commit | 83144562c056006e524a7429a8a8ec2b12d5622a (patch) | |
tree | f5d8598b90b6b715705ded8b87c10126e5c08657 /configure | |
parent | 0ab9bda1c71cd6cd42393c279ed4e1f288cf67e3 (diff) | |
download | pemagine-83144562c056006e524a7429a8a8ec2b12d5622a.tar.bz2 pemagine-83144562c056006e524a7429a8a8ec2b12d5622a.tar.xz |
build system: target & native cchost logic: initial clean-up.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -382,8 +382,7 @@ native_defaults() fi if [ -z "$mb_native_cc_host" ]; then - mb_native_cc_host=$($mb_project_dir/sysinfo/host/host.sh \ - --compiler=$mb_native_cc --cflags="$mb_native_cc_cflags") + mb_native_cc_host=$($mb_native_cc $mb_native_cc_cflags -dumpmachine) fi if [ -z "$mb_compiler" ]; then @@ -595,7 +594,14 @@ config_copy() if [ -z "$mb_cchost" ]; then if [ "$mb_host" = 'native' ]; then - mb_cchost=$(make -s -f $mb_pwd/Makefile.tmp cchost) + if [ -n "$mb_user_cc" ]; then + mbt_cc="$mb_user_cc" + else + mbt_cc="$mb_native_cc" + fi + + mbt_cflags=$(make -f $mb_pwd/Makefile.tmp .display-cflags) + mb_cchost=$($mbt_cc $mbt_cflags -dumpmachine) else mb_cchost=$mb_host fi |