commit:     84a1a4f59c4ff76fc2a2acb7e0417d0a91df7838
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  6 08:11:04 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb  6 09:02:45 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84a1a4f5

sys-apps/systemd: Do not force ld.gold by default, #539998

 sys-apps/systemd/systemd-228-r1.ebuild | 5 +++++
 sys-apps/systemd/systemd-9999.ebuild   | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/sys-apps/systemd/systemd-228-r1.ebuild 
b/sys-apps/systemd/systemd-228-r1.ebuild
index 1ca11da..a6448c1 100644
--- a/sys-apps/systemd/systemd-228-r1.ebuild
+++ b/sys-apps/systemd/systemd-228-r1.ebuild
@@ -168,6 +168,11 @@ multilib_src_configure() {
                # disable -flto since it is an optimization flag
                # and makes distcc less effective
                cc_cv_CFLAGS__flto=no
+               # disable -fuse-ld=gold since Gentoo supports explicit linker
+               # choice and forcing gold is undesired, #539998
+               # ld.gold may collide with user's LDFLAGS, #545168
+               # ld.gold breaks sparc, #573874
+               cc_cv_LDFLAGS__Wl__fuse_ld_gold=no
 
                # Workaround for gcc-4.7, bug 554454.
                cc_cv_CFLAGS__Werror_shadow=no

diff --git a/sys-apps/systemd/systemd-9999.ebuild 
b/sys-apps/systemd/systemd-9999.ebuild
index f2cc0a9..1a89016 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -167,6 +167,11 @@ multilib_src_configure() {
                # disable -flto since it is an optimization flag
                # and makes distcc less effective
                cc_cv_CFLAGS__flto=no
+               # disable -fuse-ld=gold since Gentoo supports explicit linker
+               # choice and forcing gold is undesired, #539998
+               # ld.gold may collide with user's LDFLAGS, #545168
+               # ld.gold breaks sparc, #573874
+               cc_cv_LDFLAGS__Wl__fuse_ld_gold=no
 
                # Workaround for gcc-4.7, bug 554454.
                cc_cv_CFLAGS__Werror_shadow=no

Reply via email to