If mold linker is used, it fails due to an unsupported command-line option --copy-dt-needed-entries. The flag is being added by the Gentoo ebuild, the comment says "Fix building tests". Reproducible: Always Steps to Reproduce: 1. Set up mold like in the Gentoo Wiki https://wiki.gentoo.org/wiki/Mold 2. Try to emerge media-gfx/freecad-1.0_rc1-r1 Actual Results: mold: fatal: unknown command line option: --copy-dt-needed-entries collect2: error: ld returned 1 exit status Expected Results: Package installs. Someone from mold community says this --copy-dt-needed-entries is useless: https://github.com/rui314/mold/issues/530
> Someone from mold community says this --copy-dt-needed-entries is useless: Clearly it is not useless since it does fix an issue here