From 10e1c615aa2aae5ceed19c0d9172dfa995214b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 24 May 2022 11:37:35 +0200 Subject: [PATCH] configure: Fix configure with CC="ccache gcc" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Buildroot (for example) passes CC="/workdir/build/host/bin/ccache /usr/bin/gcc" as an environment variable. "$CC" (with quotes) thus fails because "No such file or directory". $CC (without quotes) is already used in the script, so the quotes were removed where they caused the issue. That *only* changes the detection of the dependencies. The makefile were not modified. Signed-off-by: Félix Piédallu Change-Id: I564ad210e301c5095d8ba3f712c01439b285653d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12805 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris Tested-by: SPDK CI Jenkins --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 075114e35..5c3716316 100755 --- a/configure +++ b/configure @@ -648,9 +648,9 @@ for i in "$@"; do done if [[ $arch == x86_64* ]]; then - BUILD_CMD=("$CC" -o /dev/null -x c $CPPFLAGS $CFLAGS $LDFLAGS "-march=native") + BUILD_CMD=($CC -o /dev/null -x c $CPPFLAGS $CFLAGS $LDFLAGS "-march=native") else - BUILD_CMD=("$CC" -o /dev/null -x c $CPPFLAGS $CFLAGS $LDFLAGS) + BUILD_CMD=($CC -o /dev/null -x c $CPPFLAGS $CFLAGS $LDFLAGS) fi BUILD_CMD+=(-I/usr/local/include -L/usr/local/lib)