1 # This file adds functions to build glibc
2 # Copyright 2007 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
5 # Add the definitions common to glibc and eglibc
10 # do_libc_add_ons_list
11 # do_libc_min_kernel_config
12 . "${CT_LIB_DIR}/scripts/build/libc/glibc-eglibc.sh-common"
20 addons_list=($(do_libc_add_ons_list " "))
23 CT_GetFile "glibc-${CT_LIBC_VERSION}" \
24 {ftp,http}://ftp.gnu.org/gnu/glibc \
25 ftp://gcc.gnu.org/pub/glibc/releases \
26 ftp://gcc.gnu.org/pub/glibc/snapshots
29 for addon in "${addons_list[@]}"; do
30 # Never ever try to download these add-ons,
31 # they've always been internal
36 if ! CT_GetFile "glibc-${addon}-${CT_LIBC_VERSION}" \
37 {ftp,http}://ftp.gnu.org/gnu/glibc \
38 ftp://gcc.gnu.org/pub/glibc/releases \
39 ftp://gcc.gnu.org/pub/glibc/snapshots
41 # Some add-ons are bundled with glibc, others are
42 # bundled in their own tarball. Eg. NPTL is internal,
43 # while LinuxThreads was external. Also, for old
44 # versions of glibc, the libidn add-on was external,
45 # but with version >=2.10, it is internal.
46 CT_DoLog DEBUG "Addon '${addon}' could not be downloaded."
47 CT_DoLog DEBUG "We'll see later if we can find it in the source tree"
54 # There is nothing to do for glibc check config
55 do_libc_check_config() {