On 20 July 2017 at 10:52, <[email protected]> wrote: > +++ b/meta/classes/bfd-binding-now.bbclass > @@ -0,0 +1,4 @@ > +# Workaround for some ARCHs do not support bfd lazy binding well > +# Refer to: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11679 > + > +TARGET_LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', > 'ld-is-gold', ' -Wl,-z,relro,-z,now -fuse-ld=bfd ', '', d)}" >
This is pretty ugly. Does this tell us that maybe gold should be considered opt-in on a per-recipe basis instead of used by default? Can you instead have a .inc file which fiddles the flag for all the recipes from outside the recipes? See eg security_flags.inc. Ross
-- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
