Tue, 13 Aug 2019 22:03:19 +0200
replace source with . in configure script and fix toolchain detection
configure | file | annotate | diff | comparison | revisions | |
make/configure.vm | file | annotate | diff | comparison | revisions | |
make/toolchain.sh | file | annotate | diff | comparison | revisions |
--- a/configure Tue Aug 13 21:55:10 2019 +0200 +++ b/configure Tue Aug 13 22:03:19 2019 +0200 @@ -232,7 +232,7 @@ # Toolchain detection # this will insert make vars to config.mk -source make/toolchain.sh +. make/toolchain.sh # add user specified flags to config.mk echo >> $TEMP_DIR/config.mk
--- a/make/configure.vm Tue Aug 13 21:55:10 2019 +0200 +++ b/make/configure.vm Tue Aug 13 22:03:19 2019 +0200 @@ -317,7 +317,7 @@ # Toolchain detection # this will insert make vars to config.mk -source make/toolchain.sh +. make/toolchain.sh # add user specified flags to config.mk echo >> $TEMP_DIR/config.mk
--- a/make/toolchain.sh Tue Aug 13 21:55:10 2019 +0200 +++ b/make/toolchain.sh Tue Aug 13 22:03:19 2019 +0200 @@ -99,7 +99,7 @@ TOOLCHAIN_NAME=`$TEMP_DIR/checkcc` TOOLCHAIN_CC=$COMP - echo $TOOLCHAIN_NAME + echo $COMP break fi done @@ -113,7 +113,7 @@ do check_cpp_compiler $COMP if [ $? -ne 0 ]; then - if [[ ! -z $CXX ]]; then + if [ ! -z "$CXX" ]; then if [ $COMP = $CXX ]; then echo "$CC is not a working C++ Compiler" TOOLCHAIN_DETECTION_ERROR="error" @@ -127,22 +127,22 @@ # these commands and not 'cc' TOOLCHAIN_NAME=`$TEMP_DIR/checkcc` if [ $TOOLCHAIN_NAME = "gcc" ]; then - check_c_compiler "gcc" + check_cpp_compiler "g++" if [ $? -eq 0 ]; then - COMP=gcc + COMP=g++ fi fi if [ $TOOLCHAIN_NAME = "clang" ]; then - check_c_compiler "clang" + check_cpp_compiler "clang++" if [ $? -eq 0 ]; then - COMP=clang + COMP=clang++ fi fi fi TOOLCHAIN_NAME=`$TEMP_DIR/checkcc` TOOLCHAIN_CXX=$COMP - echo $TOOLCHAIN_NAME + echo $COMP break fi done