[BUILDSYSTEM] gentoo dropped ld.gold with binutils-2.44

  • Cross compiling for an RPi4 with PROJECT=RPi DEVICE=RPi4 ARCH=aarch64

    results with collect2 complaining not being able to find ld.

    Checking LD_FLAGS it contains fuse-ld=gold which is not supported anymore because its development has gone silent according to gentoo developers.

    I did not find the line where gold is set as LD standard, but in config/optimize I changed

    LDFLAGS_OPTIM_LINKER_GOLD="-fuse-ld=lld"

    or commented it - both approaches do work for me.

    Maybe we could add lld as a possible linker to use.

    I would do it myself, but where is the default linker defined?