diff options
author | midipix <writeonce@midipix.org> | 2016-02-26 17:09:04 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-02-27 14:42:47 -0500 |
commit | 82672bccf01090d6745d15309abcfa9681a7901e (patch) | |
tree | 8a9370196aaf3c3973706036d5990bd333f0edfc /configure | |
parent | 268173d2b9a8d364cae05ae95298905bf6fa8e9c (diff) | |
download | apimagic-82672bccf01090d6745d15309abcfa9681a7901e.tar.bz2 apimagic-82672bccf01090d6745d15309abcfa9681a7901e.tar.xz |
build system: --toolchain: initial implementation.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -45,6 +45,7 @@ init_vars() mb_target=$TARGET mb_arch=$ARCH mb_compiler=$COMPILER + mb_toolchain=$TOOLCHAIN mb_sysroot=$SYSROOT mb_cross_compile=$CROSS_COMPILE mb_shell=$SHELL @@ -120,6 +121,7 @@ common_defaults() [ -z "$mb_target" ] && mb_target=$mb_default_target [ -z "$mb_arch" ] && mb_arch=$mb_default_arch [ -z "$mb_compiler" ] && mb_compiler=$mb_default_compiler + [ -z "$mb_toolchain" ] && mb_toolchain=$mb_default_toolchain [ -z "$mb_sysroot" ] && mb_sysroot=$mb_default_sysroot [ -z "$mb_cross_compile" ] && mb_cross_compile=$mb_default_cross_compile [ -z "$mb_shell" ] && mb_shell=$mb_default_shell @@ -177,6 +179,11 @@ common_defaults() mb_native_cc=$mb_compiler fi fi + + # toolchain + if [ x"$mb_toolchain" = x ]; then + mb_toolchain='binutils' + fi } @@ -280,6 +287,7 @@ config_copy() -e 's^@target@^'"$mb_target"'^g' \ -e 's^@arch@^'"$mb_arch"'^g' \ -e 's^@compiler@^'"$mb_compiler"'^g' \ + -e 's^@toolchain@^'"$mb_toolchain"'^g' \ -e 's^@sysroot@^'"$mb_sysroot"'^g' \ -e 's^@cross_compile@^'"$mb_cross_compile"'^g' \ -e 's^@shell@^'"$mb_shell"'^g' \ @@ -400,6 +408,9 @@ for arg ; do --compiler=*) mb_compiler=${arg#*=} ;; + --toolchain=*) + mb_toolchain=${arg#*=} + ;; --sysroot=*) mb_sysroot=${arg#*=} ;; |