sys-apps/systemd: Do not force ld.gold by default, #539998
authorMichał Górny <mgorny@gentoo.org>
Sat, 6 Feb 2016 08:11:04 +0000 (09:11 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 6 Feb 2016 09:02:45 +0000 (10:02 +0100)
sys-apps/systemd/systemd-228-r1.ebuild
sys-apps/systemd/systemd-9999.ebuild

index 1ca11dabc10e564547ec32b3b36290de2a757f1b..a6448c154664a9f0d9556972fcad482d11ba8242 100644 (file)
@@ -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
index f2cc0a91ea31551e097dd687cd1aeddad855260e..1a89016af9019ad0e9cf2046a7786d7d2aab2c56 100644 (file)
@@ -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