scripts/build/debug/100-dmalloc.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 24 16:24:09 2008 +0000 (2008-06-24)
changeset 611 eac4dc8da8a9
parent 479 05c62432ec19
child 669 ca740b4c4262
permissions -rw-r--r--
New patches from Ioannis E. VENETIS to allow building more up-to-date Alpha x-compilers.
Some patches are still missing, though.
See: http://sourceware.org/ml/libc-help/2008-06/msg00061.html

/trunk/patches/glibc/2.5.1/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5.1/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/2.5/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/linuxthreads-2.3.6/270-glibc-linuxthreads-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/gcc/4.2.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.2/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.3/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
11 files changed, 225 insertions(+)
yann@479
     1
# Build script for the dmalloc debug library facility
yann@479
     2
yann@479
     3
is_enabled="${CT_DMALLOC}"
yann@479
     4
yann@479
     5
do_print_filename() {
yann@479
     6
    [ "${CT_DMALLOC}" = "y" ] || return 0
yann@479
     7
    echo "dmalloc-${CT_DMALLOC_VERSION}"
yann@479
     8
}
yann@479
     9
yann@479
    10
do_debug_dmalloc_get() {
yann@479
    11
    CT_GetFile "dmalloc-${CT_DMALLOC_VERSION}" http://dmalloc.com/releases/
yann@479
    12
}
yann@479
    13
yann@479
    14
do_debug_dmalloc_extract() {
yann@479
    15
    CT_ExtractAndPatch "dmalloc-${CT_DMALLOC_VERSION}"
yann@479
    16
}
yann@479
    17
yann@479
    18
do_debug_dmalloc_build() {
yann@479
    19
    CT_DoStep INFO "Installing dmalloc"
yann@479
    20
    CT_DoLog EXTRA "Configuring dmalloc"
yann@479
    21
yann@479
    22
    mkdir -p "${CT_BUILD_DIR}/build-dmalloc"
yann@479
    23
    cd "${CT_BUILD_DIR}/build-dmalloc"
yann@479
    24
yann@479
    25
    extra_config=
yann@479
    26
    case "${CT_CC_LANG_CXX}" in
yann@479
    27
        y)  extra_config="${extra_config} --enable-cxx";;
yann@479
    28
        *)  extra_config="${extra_config} --disable-cxx";;
yann@479
    29
    esac
yann@479
    30
    case "${CT_THREADS_NONE}" in
yann@479
    31
        y)  extra_config="${extra_config} --disable-threads";;
yann@479
    32
        *)  extra_config="${extra_config} --enable-threads";;
yann@479
    33
    esac
yann@479
    34
    case "${CT_SHARED_LIBS}" in
yann@479
    35
        y)  extra_config="${extra_config} --enable-shlib";;
yann@479
    36
        *)  extra_config="${extra_config} --disable-shlib";;
yann@479
    37
    esac
yann@479
    38
yann@523
    39
    CT_DoLog DEBUG "Extra config passed: '${extra_config}'"
yann@479
    40
yann@479
    41
    LD="${CT_TARGET}-ld"                                        \
yann@479
    42
    AR="${CT_TARGET}-ar"                                        \
yann@479
    43
    "${CT_SRC_DIR}/dmalloc-${CT_DMALLOC_VERSION}/configure"     \
yann@479
    44
        --prefix=/usr                                           \
yann@479
    45
        --build="${CT_BUILD}"                                   \
yann@479
    46
        --host="${CT_TARGET}"                                   \
yann@479
    47
        ${extra_config}                                         2>&1 |CT_DoLog ALL
yann@479
    48
yann@479
    49
    CT_DoLog EXTRA "Building dmalloc"
yann@479
    50
    make 2>&1 |CT_DoLog ALL
yann@479
    51
yann@479
    52
    CT_DoLog EXTRA "Installing dmalloc"
yann@479
    53
    make DESTDIR="${CT_SYSROOT_DIR}"       installincs      \
yann@479
    54
                                           installlib       2>&1 |CT_DoLog ALL
yann@479
    55
    make DESTDIR="${CT_DEBUG_INSTALL_DIR}" installutil      2>&1 |CT_DoLog ALL
yann@479
    56
yann@479
    57
    CT_EndStep
yann@479
    58
}