From 9d566c576c0c7f78635b73871e000e0ae77a5901 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com> Date: Wed, 10 Feb 2021 09:17:07 -0500 Subject: [PATCH] contrib: Fallback to gcc if cc is not available. Some systems do not ship a cc executable. Change-Id: Idb8ee8a5da0433bd96fb75dfcf1bd2d0aa6355e1 --- contrib/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/bootstrap b/contrib/bootstrap index 0903855522..fb81a9fe08 100755 --- a/contrib/bootstrap +++ b/contrib/bootstrap @@ -86,7 +86,7 @@ done if test -z "$BUILD" then echo -n "Guessing build system... " - BUILD="`${CC:-cc} -dumpmachine`" + BUILD="`${CC:-$(command -v cc || command -v gcc)} -dumpmachine`" if test -z "$BUILD"; then echo "FAIL!" exit 1 -- GitLab