app-emulation/virtualbox: force usage of ld.bfd for virtualbox-5
authorPPed72 <paolo.pedroni@iol.it>
Mon, 7 Mar 2016 13:39:26 +0000 (14:39 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 7 Mar 2016 14:51:43 +0000 (15:51 +0100)
See Gentoo bug #488176

app-emulation/virtualbox/virtualbox-5.0.16.ebuild

index 6dca89bb4b4d39667855ae6bced8be7ff6bc5a01..f08a021bc135c235ab7d3fd295a8cddbf570e2bf 100644 (file)
@@ -132,6 +132,10 @@ pkg_setup() {
        fi
        java-pkg-opt-2_pkg_setup
        python-single-r1_pkg_setup
+
+       tc-ld-disable-gold #bug 488176
+       tc-export CC CXX LD AR RANLIB
+       export HOST_CC="$(tc-getBUILD_CC)"
 }
 
 src_prepare() {
@@ -146,6 +150,10 @@ src_prepare() {
        sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
                -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
 
+       # Do not use hard-coded ld (related to bug #488176)
+       sed -e '/QUIET)ld /s@ld @$(LD) @' \
+               -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
+
        # Use PAM only when pam USE flag is enbaled (bug #376531)
        if ! use pam ; then
                elog "Disabling PAM removes the possibility to use the VRDP features."