app-emulation/virtualbox: force usage of ld.bfd for virtualbox-5

See Gentoo bug #488176
This commit is contained in:
PPed72
2016-03-07 14:39:26 +01:00
committed by Lars Wendler
parent ecac0a7b35
commit 82049238b1

View 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."