constants.sh: use "command -v"

Signed-off-by: Gyuho Lee <[email protected]>
This commit is contained in:
Gyuho Lee
2022-02-28 20:15:27 -08:00
parent 1469e8c935
commit 9f1408daa1
+1 -1
View File
@@ -24,6 +24,6 @@ static_ld_flags=''
if [ "${STATIC_COMPILATION:-}" = 1 ]
then
export CC=musl-gcc
which $CC > /dev/null || ( echo $CC must be available for static compilation && exit 1 )
command -v $CC || ( echo $CC must be available for static compilation && exit 1 )
static_ld_flags=' -extldflags "-static" -linkmode external '
fi