Offer a single option for the glibc/eglibc add-ons selection, rather than hiding it behind a toggle.
If the list is empty, then there is no add-on. If the list is not empty, then there are add-ons.
/trunk/config/libc/glibc-eglibc.in-common | 9 0 9 0 ---------
1 file changed, 9 deletions(-)
1 # Build script for the dmalloc debug library facility
4 echo "dmalloc-${CT_DMALLOC_VERSION}"
7 do_debug_dmalloc_get() {
8 CT_GetFile "dmalloc-${CT_DMALLOC_VERSION}" http://dmalloc.com/releases/
11 do_debug_dmalloc_extract() {
12 CT_ExtractAndPatch "dmalloc-${CT_DMALLOC_VERSION}"
15 do_debug_dmalloc_build() {
16 CT_DoStep INFO "Installing dmalloc"
17 CT_DoLog EXTRA "Configuring dmalloc"
19 mkdir -p "${CT_BUILD_DIR}/build-dmalloc"
20 cd "${CT_BUILD_DIR}/build-dmalloc"
23 case "${CT_CC_LANG_CXX}" in
24 y) extra_config="${extra_config} --enable-cxx";;
25 *) extra_config="${extra_config} --disable-cxx";;
27 case "${CT_THREADS_NONE}" in
28 y) extra_config="${extra_config} --disable-threads";;
29 *) extra_config="${extra_config} --enable-threads";;
31 case "${CT_SHARED_LIBS}" in
32 y) extra_config="${extra_config} --enable-shlib";;
33 *) extra_config="${extra_config} --disable-shlib";;
36 CT_DoLog DEBUG "Extra config passed: '${extra_config}'"
38 LD="${CT_TARGET}-ld" \
39 AR="${CT_TARGET}-ar" \
41 "${CT_SRC_DIR}/dmalloc-${CT_DMALLOC_VERSION}/configure" \
43 --build="${CT_BUILD}" \
44 --host="${CT_TARGET}" \
47 CT_DoLog EXTRA "Building dmalloc"
50 CT_DoLog EXTRA "Installing dmalloc"
51 CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" installincs installlib
52 CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" installutil