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....)