app-emulation/virtualbox: backport commit 82049238b1 to 4.3.x
authorIan Stakenvicius <axs@gentoo.org>
Fri, 2 Sep 2016 15:08:57 +0000 (11:08 -0400)
committerIan Stakenvicius <axs@gentoo.org>
Fri, 2 Sep 2016 15:08:57 +0000 (11:08 -0400)
See Gentoo bug #488176

Package-Manager: portage-2.2.28

app-emulation/virtualbox/virtualbox-4.3.38.ebuild
app-emulation/virtualbox/virtualbox-4.3.40.ebuild

index 4df13c2f46c90144031f919dbfd1e17db3de6bd0..e6d9597b850f5ee368e91b5d38849d58c008845d 100644 (file)
@@ -140,6 +140,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() {
@@ -158,6 +162,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."
index 7315c62bfd1bd5247ffa62606f9e3a66dcfa2db1..3932926c17a19a7e283ce098e04388e38e31e14b 100644 (file)
@@ -140,6 +140,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() {
@@ -158,6 +162,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."