Re: [PATCH] Search for gcc-ar, gcc-ranlib respectively
Paul Eggert <[email protected]> Thu, 15 May 2025 08:57:04 -0700
| Newsgroups | gmane.comp.sysutils.autoconf.patches |
|---|---|
| Organization | UCLA Computer Science Department |
| Message-ID | <[email protected]> |
On 2025-05-15 08:41, Zack Weinberg wrote:
> Is there
> a situation where gcc-{ar,ranlib} are available on the PATH but
> *should not* be used in preference to plain {ar,ranlib}?
Yes, use gcc-ar only when compiling with GCC. If you're compiling with
Clang you should use llvm-ar. I don't know of other compilers having
this issue, so for other compilers you should use plain ar.
(If you use GCC for some compiles and Clang for others in the same
project, watch out! But you knew that already....)