sys-devel/binutils: fix ldscrips ${CTARGET} search path, bug #147155
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 7 Apr 2018 10:40:14 +0000 (11:40 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 7 Apr 2018 10:42:41 +0000 (11:42 +0100)
commitb023986de7d466d361798bae98f45f8ba7a42e8a
treee1bffa55ae2ba9a1eb0f1c662e51dce7a16a48bb
parent05663070a8588ac39b87c95e2eb4b8e4f1e9aefa
sys-devel/binutils: fix ldscrips ${CTARGET} search path, bug #147155

This change fixes long-standing search path issue in Gentoo's binutils:

Before the change search path was the following:
    /usr/${CTARGET}/lib/ldscripts
Note: it points to $SYSROOT, not to native cross-tools.

After the change search path is the following:
    /usr/${CHOST}/${CTARGET}/lib/ldscripts

Added two notes to the ebuild on how things are supposed to work:
- Note [slotting support]
- Note [tooldir hack for ldscripts]

Applied change to 2.30-r1 and live ebuilds.

Reported-by: Heiko Rosemann
Closes: https://bugs.gentoo.org/147155
Package-Manager: Portage-2.3.28, Repoman-2.3.9
sys-devel/binutils/binutils-2.30-r1.ebuild [new file with mode: 0644]
sys-devel/binutils/binutils-9999.ebuild