From 4ca5af4ac9137c962d356c3ccf764e583867687d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Burdukiewicz?= Date: Sat, 4 Jan 2020 18:27:58 +0100 Subject: [PATCH] Fixed compiler invoke in configure stage. --- qb/qb.comp.sh | 8 ++++---- qb/qb.libs.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qb/qb.comp.sh b/qb/qb.comp.sh index bde2b8fe1f..2f86e6e743 100644 --- a/qb/qb.comp.sh +++ b/qb/qb.comp.sh @@ -20,12 +20,12 @@ printf %s 'Checking for suitable working C compiler ... ' cc_works=0 add_opt CC no if [ "$CC" ]; then - "$CC" -o "$TEMP_EXE" "$TEMP_C" >/dev/null 2>&1 && cc_works=1 + $CC -o "$TEMP_EXE" "$TEMP_C" >/dev/null 2>&1 && cc_works=1 else for cc in gcc cc clang; do CC="$(exists "${CROSS_COMPILE}${cc}")" || CC="" if [ "$CC" ]; then - "$CC" -o "$TEMP_EXE" "$TEMP_C" >/dev/null 2>&1 && { + $CC -o "$TEMP_EXE" "$TEMP_C" >/dev/null 2>&1 && { cc_works=1; break } fi @@ -59,12 +59,12 @@ printf %s 'Checking for suitable working C++ compiler ... ' cxx_works=0 add_opt CXX no if [ "$CXX" ]; then - "$CXX" -o "$TEMP_EXE" "$TEMP_CXX" >/dev/null 2>&1 && cxx_works=1 + $CXX -o "$TEMP_EXE" "$TEMP_CXX" >/dev/null 2>&1 && cxx_works=1 else for cxx in g++ c++ clang++; do CXX="$(exists "${CROSS_COMPILE}${cxx}")" || CXX="" if [ "$CXX" ]; then - "$CXX" -o "$TEMP_EXE" "$TEMP_CXX" >/dev/null 2>&1 && { + $CXX -o "$TEMP_EXE" "$TEMP_CXX" >/dev/null 2>&1 && { cxx_works=1; break } fi diff --git a/qb/qb.libs.sh b/qb/qb.libs.sh index 36e9abe77e..00c545abcc 100644 --- a/qb/qb.libs.sh +++ b/qb/qb.libs.sh @@ -340,7 +340,7 @@ check_switch() printf %s\\n 'int main(void) { return 0; }' > "$TEMP_CODE" answer='no' printf %s "Checking for availability of switch $3 in $COMPILER ... " - "$COMPILER" -o "$TEMP_EXE" "$TEMP_CODE" "$3" >>config.log 2>&1 && answer='yes' + $COMPILER -o "$TEMP_EXE" "$TEMP_CODE" "$3" >>config.log 2>&1 && answer='yes' eval "HAVE_$2=\"$answer\"" printf %s\\n "$answer" rm -f -- "$TEMP_CODE" "$TEMP_EXE"