sys-apps/tomoyo-tools-2.4.0_p20110820 fail with --as-needed ld flag. See bug #364921 for reference, same upstream bug Reproducible: Always
Created attachment 287851 [details, diff] tomoyo-tools-2.4.0_p20110820_fix_build_with_as_needed.patch This patch fixes the described bug by working around via sed. See the previously mentioned ccs-tools bug for reference.
Same error here, so confirmed.
Thanks a lot, the fix worked for me.
I've added fixed upstream version to the tree. Thanks.