qt5-build.eclass: use the system-configured linker
authorMichael Palimaka <kensington@gentoo.org>
Sun, 10 Dec 2017 11:26:11 +0000 (22:26 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Fri, 22 Dec 2017 11:56:01 +0000 (22:56 +1100)
eclass/qt5-build.eclass

index 8728acc2c18d72159d1dc37c7a67593b5397fbe6..fd29ed1e6c05d01dc3dc99b93d25179bed7f4e66 100644 (file)
@@ -632,8 +632,8 @@ qt5_base_configure() {
                # supported; see also https://bugreports.qt.io/browse/QTBUG-36129
                #-reduce-relocations
 
-               # let configure automatically detect if GNU gold is available
-               #-use-gold-linker
+               # use the system linker (gold will be selected automagically otherwise)
+               $(tc-ld-is-gold && echo -use-gold-linker || echo -no-use-gold-linker)
 
                # disable all platform plugins by default, override in qtgui
                -no-xcb -no-eglfs -no-kms -no-gbm -no-directfb -no-linuxfb -no-mirclient