1.1 --- a/scripts/build/libc_glibc.sh Sat Feb 24 11:00:05 2007 +0000
1.2 +++ b/scripts/build/libc_glibc.sh Mon May 07 09:04:02 2007 +0000
1.3 @@ -2,6 +2,33 @@
1.4 # Copyright 2007 Yann E. MORIN
1.5 # Licensed under the GPL v2. See COPYING in the root of this package
1.6
1.7 +# Download glibc
1.8 +do_libc_download() {
1.9 + # Ah! Not all GNU folks seem stupid. All glibc releases are in the same
1.10 + # directory. Good. Alas, there is no snapshot there. I'll deal with them
1.11 + # later on... :-/
1.12 + CT_GetFile "${CT_LIBC_FILE}" ftp://ftp.gnu.org/gnu/glibc
1.13 +
1.14 + # C library addons
1.15 + addons_list=`echo "${CT_LIBC_ADDONS}" |sed -r -e 's/,/ /g; s/ $//g;'`
1.16 + for addon in ${addons_list}; do
1.17 + CT_GetFile "${CT_LIBC}-${addon}-${CT_LIBC_VERSION}" ftp://ftp.gnu.org/gnu/glibc
1.18 + done
1.19 + [ "${CT_LIBC_GLIBC_USE_PORTS}" = "y" ] && CT_GetFile "${CT_LIBC}-ports-${CT_LIBC_VERSION}" ftp://ftp.gnu.org/gnu/glibc
1.20 +}
1.21 +
1.22 +# Extract glibc
1.23 +do_libc_extract() {
1.24 + CT_ExtractAndPatch "${CT_LIBC_FILE}"
1.25 +
1.26 + # C library addons
1.27 + addons_list=`echo "${CT_LIBC_ADDONS}" |sed -r -e 's/,/ /g; s/ $//g;'`
1.28 + for addon in ${addons_list}; do
1.29 + CT_ExtractAndPatch "${CT_LIBC}-${addon}-${CT_LIBC_VERSION}"
1.30 + done
1.31 + [ "${CT_LIBC_GLIBC_USE_PORTS}" = "y" ] && CT_ExtractAndPatch "${CT_LIBC}-ports-${CT_LIBC_VERSION}"
1.32 +}
1.33 +
1.34 # There is nothing to do for glibc check config
1.35 do_libc_check_config() {
1.36 CT_DoStep INFO "Checking C library configuration"
1.37 @@ -44,7 +71,8 @@
1.38 --host="${CT_TARGET}" \
1.39 --prefix=/usr \
1.40 --with-headers="${CT_HEADERS_DIR}" \
1.41 - --without-cvs --disable-sanity-checks \
1.42 + --without-cvs \
1.43 + --disable-sanity-checks \
1.44 --enable-hacker-mode \
1.45 --enable-add-ons="" \
1.46 --without-nptl 2>&1 |CT_DoLog DEBUG
1.47 @@ -142,7 +170,7 @@
1.48 CT_DoLog DEBUG "Extra config args passed: \"${extra_config}\""
1.49
1.50 # Add some default CC args
1.51 - extra_cc_args=
1.52 + extra_cc_args="${CT_CFLAGS_FOR_HOST}"
1.53 case "${CT_LIBC_EXTRA_CC_ARGS}" in
1.54 *-mbig-endian*) ;;
1.55 *-mlittle-endian*) ;;