Lines 1421-1430
gcc_do_configure() {
Link Here
|
1421 |
if [[ ${GCCMAJOR}.${GCCMINOR} > 4.1 ]] ; then |
1421 |
if [[ ${GCCMAJOR}.${GCCMINOR} > 4.1 ]] ; then |
1422 |
confgcc="${confgcc} --disable-bootstrap --disable-libgomp" |
1422 |
confgcc="${confgcc} --disable-bootstrap --disable-libgomp" |
1423 |
fi |
1423 |
fi |
1424 |
elif [[ ${CHOST} == mingw* ]] || [[ ${CHOST} == *-mingw* ]] || [[ ${CHOST} == *-cygwin ]] ; then |
|
|
1425 |
confgcc="${confgcc} --enable-shared --enable-threads=win32" |
1426 |
else |
1424 |
else |
1427 |
confgcc="${confgcc} --enable-shared --enable-threads=posix" |
1425 |
if tc-is-static-only ; then |
|
|
1426 |
confgcc="${confgcc} --disable-shared" |
1427 |
else |
1428 |
confgcc="${confgcc} --enable-shared" |
1429 |
fi |
1430 |
case ${CHOST} in |
1431 |
mingw*|*-mingw*|*-cygwin) |
1432 |
confgcc="${confgcc} --enable-threads=win32" ;; |
1433 |
*-mint*) |
1434 |
confgcc="${confgcc} --disable-threads" ;; |
1435 |
*) |
1436 |
confgcc="${confgcc} --enable-threads=posix" ;; |
1437 |
esac |
1428 |
fi |
1438 |
fi |
1429 |
[[ ${CTARGET} == *-elf ]] && confgcc="${confgcc} --with-newlib" |
1439 |
[[ ${CTARGET} == *-elf ]] && confgcc="${confgcc} --with-newlib" |
1430 |
# __cxa_atexit is "essential for fully standards-compliant handling of |
1440 |
# __cxa_atexit is "essential for fully standards-compliant handling of |
Lines 2549-2556
is_multilib() {
Link Here
|
2549 |
case ${CTARGET} in |
2559 |
case ${CTARGET} in |
2550 |
mips64*|powerpc64*|s390x*|sparc*|x86_64*) |
2560 |
mips64*|powerpc64*|s390x*|sparc*|x86_64*) |
2551 |
has_multilib_profile || use multilib ;; |
2561 |
has_multilib_profile || use multilib ;; |
2552 |
*-*-solaris*) use multilib ;; |
2562 |
*-*-solaris*|*-apple-darwin*|*-mint*) |
2553 |
*-apple-darwin*) use multilib ;; |
2563 |
use multilib ;; |
2554 |
*) false ;; |
2564 |
*) false ;; |
2555 |
esac |
2565 |
esac |
2556 |
} |
2566 |
} |