Lines 81-86
IUSE="nls multitarget multislot static-l
Link Here
|
81 |
if version_is_at_least 2.19 ; then |
81 |
if version_is_at_least 2.19 ; then |
82 |
IUSE+=" zlib" |
82 |
IUSE+=" zlib" |
83 |
fi |
83 |
fi |
|
|
84 |
if version_is_at_least 2.21 ; then |
85 |
IUSE+=" gold" |
86 |
fi |
84 |
if use multislot ; then |
87 |
if use multislot ; then |
85 |
SLOT="${CTARGET}-${BVER}" |
88 |
SLOT="${CTARGET}-${BVER}" |
86 |
elif is_cross ; then |
89 |
elif is_cross ; then |
Lines 206-212
toolchain-binutils_src_compile() {
Link Here
|
206 |
|
209 |
|
207 |
# enable gold if available (installed as ld.gold) |
210 |
# enable gold if available (installed as ld.gold) |
208 |
if grep -q 'enable-gold=default' "${S}"/configure ; then |
211 |
if grep -q 'enable-gold=default' "${S}"/configure ; then |
209 |
set -- "$@" --enable-gold |
212 |
if use gold ; then |
|
|
213 |
# Install gold as "ld.gold" and "ld" |
214 |
set -- "$@" --enable-gold=default |
215 |
else |
216 |
# Install bfd as "ld.bfd" and "ld" |
217 |
set -- "$@" --enable-gold |
218 |
fi |
210 |
# old ways - remove when 2.21 is stable |
219 |
# old ways - remove when 2.21 is stable |
211 |
elif grep -q 'enable-gold=both/ld' "${S}"/configure ; then |
220 |
elif grep -q 'enable-gold=both/ld' "${S}"/configure ; then |
212 |
set -- "$@" --enable-gold=both/ld |
221 |
set -- "$@" --enable-gold=both/ld |