Lines 1225-1231
gcc-compiler-configure() {
Link Here
|
1225 |
# Default arch for x86 is normally i386, lets give it a bump |
1225 |
# Default arch for x86 is normally i386, lets give it a bump |
1226 |
# since glibc will do so based on CTARGET anyways |
1226 |
# since glibc will do so based on CTARGET anyways |
1227 |
x86) |
1227 |
x86) |
1228 |
confgcc="${confgcc} --with-arch=${CTARGET%%-*}" |
1228 |
if ! is_multilib ; then |
|
|
1229 |
# Don't set default arch for multilib; it breaks 64bit compiles |
1230 |
# unless you give -march, which breaks the gcc build itself. |
1231 |
confgcc="${confgcc} --with-arch=${CTARGET%%-*}" |
1232 |
fi |
1229 |
;; |
1233 |
;; |
1230 |
# Enable sjlj exceptions for backward compatibility on hppa |
1234 |
# Enable sjlj exceptions for backward compatibility on hppa |
1231 |
hppa) |
1235 |
hppa) |
Lines 1397-1411
gcc_do_configure() {
Link Here
|
1397 |
fi |
1401 |
fi |
1398 |
[[ ${GCCMAJOR}.${GCCMINOR} < 3.4 ]] && confgcc="${confgcc} --disable-libunwind-exceptions" |
1402 |
[[ ${GCCMAJOR}.${GCCMINOR} < 3.4 ]] && confgcc="${confgcc} --disable-libunwind-exceptions" |
1399 |
|
1403 |
|
1400 |
# create a sparc*linux*-{gcc,g++} that can handle -m32 and -m64 (biarch) |
1404 |
if [[ ${CTARGET} == *linux* ]] && is_multilib && ! is_crosscompile && |
1401 |
if [[ ${CTARGET} == sparc*linux* ]] \ |
1405 |
[[ ${GCCMAJOR}.${GCCMINOR} > 4.2 ]] ; then |
1402 |
&& is_multilib \ |
1406 |
case $(tc-arch) in |
1403 |
&& ! is_crosscompile \ |
1407 |
sparc|x86) confgcc="${confgcc} --enable-targets=all" |
1404 |
&& [[ ${GCCMAJOR}.${GCCMINOR} > 4.2 ]] |
1408 |
;; |
1405 |
then |
1409 |
esac |
1406 |
confgcc="${confgcc} --enable-targets=all" |
|
|
1407 |
fi |
1410 |
fi |
1408 |
|
1411 |
|
|
|
1412 |
|
1409 |
tc_version_is_at_least 4.3 && set -- "$@" \ |
1413 |
tc_version_is_at_least 4.3 && set -- "$@" \ |
1410 |
--with-bugurl=http://bugs.gentoo.org/ \ |
1414 |
--with-bugurl=http://bugs.gentoo.org/ \ |
1411 |
--with-pkgversion="${BRANDING_GCC_PKGVERSION}" |
1415 |
--with-pkgversion="${BRANDING_GCC_PKGVERSION}" |
Lines 2505-2517
fix_libtool_libdir_paths() {
Link Here
|
2505 |
|
2509 |
|
2506 |
is_multilib() { |
2510 |
is_multilib() { |
2507 |
[[ ${GCCMAJOR} < 3 ]] && return 1 |
2511 |
[[ ${GCCMAJOR} < 3 ]] && return 1 |
2508 |
case ${CTARGET} in |
2512 |
has_multilib_profile || use multilib |
2509 |
mips64*|powerpc64*|s390x*|sparc*|x86_64*) |
|
|
2510 |
has_multilib_profile || use multilib ;; |
2511 |
*-*-solaris*) use multilib ;; |
2512 |
*-apple-darwin*) use multilib ;; |
2513 |
*) false ;; |
2514 |
esac |
2515 |
} |
2513 |
} |
2516 |
|
2514 |
|
2517 |
is_cxx() { |
2515 |
is_cxx() { |