[PATCH] binutils: Use AC_TRY_COMPILE to check target clang/gcc

Alan Modra amodra@gmail.com
Fri Oct 3 01:04:57 GMT 2025


On Thu, Oct 02, 2025 at 04:33:17PM +0800, H.J. Lu wrote:
> On Thu, Oct 2, 2025 at 4:18 PM Alan Modra <amodra@gmail.com> wrote:
> > Also, can someone tell me why we need to invoke llvm-config?  Are
> > there versions or installations of clang where
> >   clang --print-file-name LLVMgold.so
> > does not find/print the path to LLVMgold.so, but
> >   `llvm-config --libdir`/LLVMgold.so
> > will?  If it is only old versions or broken installations of clang,
> > then should we bother?
> >
> 
> See:
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=33198
> 
> for why llvm-config is used.

That tells me Sam found that clang --print-file-name LLVMgold.so
didn't work.  Sam, do you know why?

-- 
Alan Modra


More information about the Binutils mailing list