Add two new patches to glibc-2.7 to make it build for Alpha.
Patches propagated to me from the net by Ioannis E. VENETIS.
/trunk/patches/glibc/2.7/230-glibc-2.7-alpha-atfcts.patch | 12 12 0 0 ++
/trunk/patches/glibc/2.7/240-glibc-2.7-alpha-ptr_mangle.patch | 94 94 0 0 +++++++++++++++++
2 files changed, 106 insertions(+)
1 # Build script for the dmalloc debug library facility
3 is_enabled="${CT_DMALLOC}"
6 [ "${CT_DMALLOC}" = "y" ] || return 0
7 echo "dmalloc-${CT_DMALLOC_VERSION}"
10 do_debug_dmalloc_get() {
11 CT_GetFile "dmalloc-${CT_DMALLOC_VERSION}" http://dmalloc.com/releases/
14 do_debug_dmalloc_extract() {
15 CT_ExtractAndPatch "dmalloc-${CT_DMALLOC_VERSION}"
18 do_debug_dmalloc_build() {
19 CT_DoStep INFO "Installing dmalloc"
20 CT_DoLog EXTRA "Configuring dmalloc"
22 mkdir -p "${CT_BUILD_DIR}/build-dmalloc"
23 cd "${CT_BUILD_DIR}/build-dmalloc"
26 case "${CT_CC_LANG_CXX}" in
27 y) extra_config="${extra_config} --enable-cxx";;
28 *) extra_config="${extra_config} --disable-cxx";;
30 case "${CT_THREADS_NONE}" in
31 y) extra_config="${extra_config} --disable-threads";;
32 *) extra_config="${extra_config} --enable-threads";;
34 case "${CT_SHARED_LIBS}" in
35 y) extra_config="${extra_config} --enable-shlib";;
36 *) extra_config="${extra_config} --disable-shlib";;
39 CT_DoLog DEBUG "Extra config passed: '${extra_config}'"
41 LD="${CT_TARGET}-ld" \
42 AR="${CT_TARGET}-ar" \
44 "${CT_SRC_DIR}/dmalloc-${CT_DMALLOC_VERSION}/configure" \
46 --build="${CT_BUILD}" \
47 --host="${CT_TARGET}" \
50 CT_DoLog EXTRA "Building dmalloc"
51 CT_DoExecLog ALL make 2>&1 |CT_DoLog ALL
53 CT_DoLog EXTRA "Installing dmalloc"
54 CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" installincs installlib
55 CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" installutil