ZakKemble / avr-gcc-build

https://blog.zakkemble.net/avr-gcc-builds/
51 stars 10 forks source link

Configure avr-gcc with `--with-gnu-ld` #7

Closed sprintersb closed 2 months ago

sprintersb commented 6 months ago

Configuring GCC with --with-gnu-ld can improve the handling of @-files:

Only when the driver knows that the GNU linker is used, it will put options / objects for linking in @-file. This may be required on Windows when the inflated command line is too long for Windows. The behaviour of collect2 also depends on that flag: When the driver calls collect2 for linking with an @-file, collect2 will call ld with an @-file only with the GNU linker.

The configure scripts can't always work this out, e.g. for canadian-cross builds, because configure cannot call the host's ld.exe.

ZakKemble commented 2 months ago

Thanks!