scripts/build/tools/100-libelf.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Nov 04 18:31:07 2008 +0000 (2008-11-04)
changeset 1035 4e94b43c56ed
parent 663 3c8d3ef50106
child 1112 c72aecd1a9ef
permissions -rw-r--r--
Use target GMP and MPFR when building target binutils:
- this is not really used yet, as only the iberty and bfd libraries are built
- if we ever are to build the full binutils for the target, then it is already configured to use the target GMP and MPFR.

/trunk/scripts/build/binutils.sh | 7 7 0 0 +++++++
1 file changed, 7 insertions(+)
     1 # Build script for libelf
     2 
     3 do_print_filename() {
     4     echo "libelf-${CT_LIBELF_VERSION}"
     5 }
     6 
     7 do_tools_libelf_get() {
     8     # The server hosting libelf will return an "HTTP 300 : Multiple Choices"
     9     # error code if we try to download a file that does not exists there.
    10     # So we have to request the file with an explicit extension.
    11     CT_GetFile "libelf-${CT_LIBELF_VERSION}" .tar.gz http://www.mr511.de/software/
    12 }
    13 
    14 do_tools_libelf_extract() {
    15     CT_ExtractAndPatch "libelf-${CT_LIBELF_VERSION}"
    16 }
    17 
    18 do_tools_libelf_build() {
    19     CT_DoStep INFO "Installing libelf"
    20     mkdir -p "${CT_BUILD_DIR}/build-libelf"
    21     CT_Pushd "${CT_BUILD_DIR}/build-libelf"
    22 
    23     CT_DoLog EXTRA "Configuring libelf"
    24     CC="${CT_TARGET}-gcc"                                   \
    25     CT_DoExecLog ALL                                        \
    26     "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure"   \
    27         --build=${CT_BUILD}                                 \
    28         --host=${CT_TARGET}                                 \
    29         --target=${CT_TARGET}                               \
    30         --prefix=/usr                                       \
    31         --enable-compat                                     \
    32         --enable-elf64                                      \
    33         --enable-shared                                     \
    34         --enable-extended-format                            \
    35         --enable-static
    36 
    37     CT_DoLog EXTRA "Building libelf"
    38     CT_DoExecLog ALL make
    39 
    40     CT_DoLog EXTRA "Installing libelf"
    41     CT_DoExecLog ALL make instroot="${CT_SYSROOT_DIR}" install
    42 
    43     CT_Popd
    44     CT_EndStep
    45 }
    46