1.1 --- a/scripts/build/libc/glibc.sh Sun May 29 19:24:41 2011 +0200
1.2 +++ b/scripts/build/libc/glibc.sh Mon May 30 23:05:28 2011 +0200
1.3 @@ -27,12 +27,19 @@
1.4
1.5 # C library addons
1.6 for addon in "${addons_list[@]}"; do
1.7 - # NPTL addon is not to be downloaded, in any case
1.8 - [ "${addon}" = "nptl" ] && continue || true
1.9 - CT_GetFile "glibc-${addon}-${CT_LIBC_VERSION}" \
1.10 - {ftp,http}://ftp.gnu.org/gnu/glibc \
1.11 - ftp://gcc.gnu.org/pub/glibc/releases \
1.12 - ftp://gcc.gnu.org/pub/glibc/snapshots
1.13 + if ! CT_GetFile "glibc-${addon}-${CT_LIBC_VERSION}" \
1.14 + {ftp,http}://ftp.gnu.org/gnu/glibc \
1.15 + ftp://gcc.gnu.org/pub/glibc/releases \
1.16 + ftp://gcc.gnu.org/pub/glibc/snapshots
1.17 + then
1.18 + # Some add-ons are bundled with glibc, others are
1.19 + # bundled in their own tarball. Eg. NPTL is internal,
1.20 + # while LinuxThreads was external. Also, for old
1.21 + # versions of glibc, the libidn add-on was external,
1.22 + # but with version >=2.10, it is internal.
1.23 + CT_DoLog DEBUG "Addon '${addon}' could not be downloaded."
1.24 + CT_DoLog DEBUG "We'll see later if we can find it in the source tree"
1.25 + fi
1.26 done
1.27
1.28 return 0