--- configure.orig	2022-02-23 19:52:00 UTC
+++ configure
@@ -6625,7 +6625,7 @@ fi
 
 if test "$Py_LTO" = 'true' ; then
   case $CC in
-    *clang*)
+    *clang*|cc)
 
       if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
