bug#78433: [PATCH] Search for gcc-ar

2025-05-16 Thread Karl Berry
pursue fixing it on the GCC side: https://gcc.gnu.org/PR84995. Egad. I'm glad I'm not on the hook for that stuff :). I'll withdraw the patch, at least for now. Duly closing. Thanks Sam. --best, karl.

[bug#78433] [PATCH] Search for gcc-ar

2025-05-15 Thread Sam James
Karl Berry writes: > Hi Sam, Hi Karl, > > but how does this look in principle? > > -AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) > +AC_CHECK_TOOLS([AR], [gcc-ar ar lib "link -lib"], [false]) > > Seems about as simple a change as it could be. Assuming that gcc-ar > behaves lik

[bug#78433] [PATCH] Search for gcc-ar

2025-05-15 Thread Karl Berry
Hi Sam, but how does this look in principle? -AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) +AC_CHECK_TOOLS([AR], [gcc-ar ar lib "link -lib"], [false]) Seems about as simple a change as it could be. Assuming that gcc-ar behaves like normal ar in normal situations (no plugins or

[bug#78433] [PATCH] Search for gcc-ar

2025-05-14 Thread Sam James
Sam James writes: > GCC requires `ar` to have plugin support when using LTO. While the situation > has improved as many distributions install the GCC plugin to a location > that GNU Binutils can automatically find, this isn't required and isn't done > by default. > > By searching for `gcc-ar` fir

[bug#78433] [PATCH] Search for gcc-ar

2025-05-14 Thread Sam James
GCC requires `ar` to have plugin support when using LTO. While the situation has improved as many distributions install the GCC plugin to a location that GNU Binutils can automatically find, this isn't required and isn't done by default. By searching for `gcc-ar` first, we can make this case work