USE_LLD=No vs. aarch64?

2019-05-26 Thread Christian Weisgerber
USE_LLD=No is confusing on aarch64. The setting creates a wrapper script ${WRKDIR}/bin/ld that execs /usr/bin/ld.bfd... which does not exist on aarch64, resulting in build errors like configure: error: C compiler cannot create executables See `config.log' for more details I'm uncertain what to d

Re: USE_LLD=No vs. aarch64?

2019-05-27 Thread Jeremie Courreges-Anglas
On Sun, May 26 2019, Christian Weisgerber wrote: > USE_LLD=No is confusing on aarch64. The setting creates a wrapper > script ${WRKDIR}/bin/ld that execs /usr/bin/ld.bfd... which does > not exist on aarch64, resulting in build errors like > > configure: error: C compiler cannot create executables

Re: USE_LLD=No vs. aarch64?

2019-05-28 Thread Christian Weisgerber
Jeremie Courreges-Anglas: > So far we only need this for one arch, maybe a cheaper approach would be > enough? The diff below just tests whether ld.bfd exists. On archs other than LLD_ARCHS, that diff would stat() ld.bfd every time bsd.port.mk is parsed. Let's do this only when USE_LLD switches

Re: USE_LLD=No vs. aarch64?

2019-05-28 Thread Jeremie Courreges-Anglas
On Tue, May 28 2019, Christian Weisgerber wrote: > Jeremie Courreges-Anglas: > >> So far we only need this for one arch, maybe a cheaper approach would be >> enough? The diff below just tests whether ld.bfd exists. > > On archs other than LLD_ARCHS, that diff would stat() ld.bfd every > time bsd.