configure: error: llvm-ar is required for a --with-lto build with clang but could not be found. python38-3.8.13_1

From: David Gessel <gessel_at_blackrosetech.com>
Date: Sun, 01 May 2022 17:11:50 UTC
checking for --with-lto... yes
checking for llvm-ar... no
configure: error: llvm-ar is required for a --with-lto build with clang but could not be found.



# /usr/local/llvm10/bin/llvm-ar
/usr/local/llvm10/bin/llvm-ar: error: an archive name must be specified
OVERVIEW: LLVM Archiver

config.log is empty.


disabling --with-lto permits build, it is just this check

 FreeBSD 11.3-RELEASE-p8 #0 r360490

-David