configure: Fix configure with CC="ccache gcc"
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 <felix@piedallu.me> Change-Id: I564ad210e301c5095d8ba3f712c01439b285653d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12805 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
bb33310aa0
commit
10e1c615aa
4
configure
vendored
4
configure
vendored
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user