scripts/build/arch/powerpc.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 31 17:38:26 2009 +0000 (2009-01-31)
changeset 1180 734db80cc9b9
parent 903 9fb0f81b4416
child 1181 2e88d85d6ffc
permissions -rw-r--r--
Further handle the lib64 -> lib symlinks.
It at least helps powerpc64 to build, and should innocuous to other archs.

/trunk/scripts/crosstool-NG.sh.in | 8 6 2 0 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
yann@520
     1
# Compute powerpc-specific values
yann@520
     2
yann@964
     3
CT_DoArchTupleValues () {
yann@520
     4
    # The architecture part of the tuple:
yann@520
     5
    CT_TARGET_ARCH="${CT_ARCH}"
yann@520
     6
yann@520
     7
    # The kernel ARCH:
yann@520
     8
    CT_KERNEL_ARCH=powerpc
yann@792
     9
yann@792
    10
    # Add spe in the tuplet if needed
yann@792
    11
    case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
yann@792
    12
        glibc,|eglibc,)   CT_TARGET_SYS=gnu;;
yann@792
    13
        glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
yann@792
    14
    esac
yann@792
    15
yann@792
    16
    # Add extra flags for SPE if needed
yann@792
    17
    if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
yann@792
    18
        CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
yann@792
    19
        CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
yann@792
    20
        CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
yann@792
    21
    fi
yann@520
    22
}