[Bug 1037126] New: binutils: enable as-needed by default
http://bugzilla.opensuse.org/show_bug.cgi?id=1037126 Bug ID: 1037126 Summary: binutils: enable as-needed by default Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: All OS: Linux Status: NEW Severity: Minor Priority: P5 - None Component: Development Assignee: matz@suse.com Reporter: jengelh@inai.de QA Contact: qa-bugs@suse.de CC: rguenther@suse.com Found By: --- Blocker: --- Inside the build service environment created by /usr/bin/build, $SUSE_ASNEEDED is set and ld behaves as if it were passed -Wl,--as-needed. Outside that box, in a "normal" system, SUSE_ASNEEDED=0. This behavior is puzzling to some people every now and then. https://lists.opensuse.org/opensuse-packaging/2017-05/msg00000.html I think we should always enable --as-needed for the openSUSE "normal" system. Debian systems also behave such that an incorrect -l order leads to builds stopping. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1037126 http://bugzilla.opensuse.org/show_bug.cgi?id=1037126#c2 --- Comment #2 from Richard Biener <rguenther@suse.com> --- But do we really want to deviate from upstream here? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1037126 http://bugzilla.opensuse.org/show_bug.cgi?id=1037126#c3 --- Comment #3 from Jan Engelhardt <jengelh@inai.de> --- Well, we already deviate in half of Geeko land. The first maxime is therefore to make it behave equal again across SUSE products. Secondarily is to have a look at what other distros do, and evaluate whether to go with the not-upstream-default behavior. Besides Debian, it would appear that Gentoo also has as-needed enabled. as-needed is one of many strategies to drop unnecessary dependencies and to also find programming errors due to effects of link order sensitiviy (missing libs, etc.). I anecdotally remember solaris ld being link-order-sensitive (but not as-needy) too, so that's that. In other words, it just helps me and others make somewhat better software. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com