commit: 2d633adbebdd68bcd99a50c2e555ee7c2d2744d6
parent: 842de518cb01a353af960822553918c0ada0271f
author: Brian Callahan <bcallah@openbsd.org>
date: Thu, 23 Jul 2020 10:12:44 -0400
If using --no-thanks and you didn't specify the environment
variable CC, default to gcc. This probably won't work in terms of
cross compilation, but should build a native oksh with all the
compat compiled in (provided the system has a gcc executable, of
course).
1 file changed, 3 insertions(+)
diff --git a/configure b/configure
@@ -749,6 +749,9 @@ if [ $compileonly -eq 1 ] ; then
fi
if [ $doconfigure -eq 0 ] ; then
+ if [ -z "$CC" ] ; then
+ CC=gcc
+ fi
cflags="$cflags -std=gnu99"
echo "OK, I trust you."
echo "I'll assume you have gcc/clang and little else."