There are many ebuilds using strip-flags to filter potentially dangerous flags, which is OK, but it also filters -fuse-ld=xxxx flag, which is not correct (or it should not) since that flag does not change compilation but linking, therefore should be respected (unless for example, forcing to bfd linker is wanted, like I've seen in other ebuilds)
Yeah, I think allowing -fuse-ld= is reasonable.
Would you like to give it a try yourself? Should be a matter adding a template to https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/flag-o-matic.eclass#n36
Created attachment 543328 [details, diff] Patch for allowing -fuse-ld=* flag Thanks for the opportunity :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17e0688ccc36f3d0d018814555a28c8dcf878ccc commit 17e0688ccc36f3d0d018814555a28c8dcf878ccc Author: David C. Manuelda <StormByte@gmail.com> AuthorDate: 2018-08-13 21:46:41 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-08-24 22:40:23 +0000 flag-o-matic.eclass: allow -fuse-ld=* in filter flags Closes: https://bugs.gentoo.org/662718 eclass/flag-o-matic.eclass | 3 +++ 1 file changed, 3 insertions(+)
I tweaked the patch slightly. Thank you!