Lines 1491-1507
Link Here
|
1491 |
# In addition to the target to be used, the following variables alter the |
1491 |
# In addition to the target to be used, the following variables alter the |
1492 |
# behavior of this function: |
1492 |
# behavior of this function: |
1493 |
# |
1493 |
# |
1494 |
# LDFLAGS |
|
|
1495 |
# Flags to pass to ld |
1496 |
# |
1497 |
# STAGE1_CFLAGS |
1494 |
# STAGE1_CFLAGS |
1498 |
# CFLAGS to use during stage1 of a gcc bootstrap |
1495 |
# CFLAGS to use during stage1 of a gcc compile. |
1499 |
# |
1496 |
# |
1500 |
# BOOT_CFLAGS |
1497 |
# BOOT_CFLAGS |
1501 |
# CFLAGS to use during stages 2+3 of a gcc bootstrap. |
1498 |
# CFLAGS to use during stages 2+3 of a gcc bootstrap. |
1502 |
# |
1499 |
# |
1503 |
# Travis Tilley <lv@gentoo.org> (04 Sep 2004) |
1500 |
# BOOT_LDFLAGS |
|
|
1501 |
# LDFLAGS to use during stages 2+3 of a gcc bootstrap. |
1502 |
# |
1503 |
# CFLAGS_FOR_TARGET |
1504 |
# CFLAGS used for building non-bootstrapped libs (eg. libgomp). |
1504 |
# |
1505 |
# |
|
|
1506 |
# LDFLAGS_FOR_TARGET |
1507 |
# LDFLAGS used for building non-bootstrapped libs (eg. libgomp). |
1508 |
# |
1509 |
|
1505 |
gcc_do_make() { |
1510 |
gcc_do_make() { |
1506 |
# Fix for libtool-portage.patch |
1511 |
# Fix for libtool-portage.patch |
1507 |
local OLDS=${S} |
1512 |
local OLDS=${S} |
Lines 1532-1555
Link Here
|
1532 |
STAGE1_CFLAGS=${STAGE1_CFLAGS-"-O2"} |
1537 |
STAGE1_CFLAGS=${STAGE1_CFLAGS-"-O2"} |
1533 |
fi |
1538 |
fi |
1534 |
|
1539 |
|
1535 |
if is_crosscompile; then |
1540 |
if ! is_crosscompile; then |
1536 |
# In 3.4, BOOT_CFLAGS is never used on a crosscompile... |
|
|
1537 |
# but I'll leave this in anyways as someone might have had |
1538 |
# some reason for putting it in here... --eradicator |
1539 |
BOOT_CFLAGS=${BOOT_CFLAGS-"-O2"} |
1540 |
else |
1541 |
# we only want to use the system's CFLAGS if not building a |
1541 |
# we only want to use the system's CFLAGS if not building a |
1542 |
# cross-compiler. |
1542 |
# cross-compiler. |
1543 |
BOOT_CFLAGS=${BOOT_CFLAGS-"$(get_abi_CFLAGS) ${CFLAGS}"} |
1543 |
BOOT_CFLAGS=${BOOT_CFLAGS-"$(get_abi_CFLAGS) ${CFLAGS}"} |
|
|
1544 |
CFLAGS_FOR_TARGET=${CFLAGS_FOR_TARGET-"$(get_abi_CFLAGS) ${CFLAGS}"} |
1545 |
BOOT_LDFLAGS=${BOOT_LDFLAGS-"${LDFLAGS}"} |
1546 |
LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET-"${LDFLAGS}"} |
1544 |
fi |
1547 |
fi |
1545 |
|
1548 |
|
1546 |
pushd "${WORKDIR}"/build |
1549 |
pushd "${WORKDIR}"/build |
1547 |
|
1550 |
|
1548 |
emake \ |
1551 |
emake \ |
1549 |
LDFLAGS="${LDFLAGS}" \ |
|
|
1550 |
STAGE1_CFLAGS="${STAGE1_CFLAGS}" \ |
1551 |
LIBPATH="${LIBPATH}" \ |
1552 |
LIBPATH="${LIBPATH}" \ |
|
|
1553 |
STAGE1_CFLAGS="${STAGE1_CFLAGS}" \ |
1552 |
BOOT_CFLAGS="${BOOT_CFLAGS}" \ |
1554 |
BOOT_CFLAGS="${BOOT_CFLAGS}" \ |
|
|
1555 |
BOOT_LDFLAGS="${BOOT_LDFLAGS}" \ |
1556 |
CFLAGS_FOR_TARGET="${CFLAGS_FOR_TARGET}" \ |
1557 |
LDFLAGS_FOR_TARGET="${LDFLAGS_FOR_TARGET}" \ |
1553 |
${GCC_MAKE_TARGET} \ |
1558 |
${GCC_MAKE_TARGET} \ |
1554 |
|| die "emake failed with ${GCC_MAKE_TARGET}" |
1559 |
|| die "emake failed with ${GCC_MAKE_TARGET}" |
1555 |
|
1560 |
|