1.1 --- a/scripts/functions Wed May 14 17:49:52 2008 +0000
1.2 +++ b/scripts/functions Thu May 15 20:45:18 2008 +0000
1.3 @@ -441,8 +441,8 @@
1.4 CT_DoLog EXTRA "Patching \"${file}\""
1.5
1.6 if [ "${libc_addon}" = "y" ]; then
1.7 - # Some addons tarball directly contian the correct addon directory,
1.8 - # while others have the addon directory named ofter the tarball.
1.9 + # Some addon tarballs directly contain the correct addon directory,
1.10 + # while others have the addon directory named after the tarball.
1.11 # Fix that by always using the short name (eg: linuxthreads, ports, etc...)
1.12 addon_short_name=`echo "${file}" |sed -r -e 's/^[^-]+-//; s/-[^-]+$//;'`
1.13 [ -d "${addon_short_name}" ] || ln -s "${file}" "${addon_short_name}"
1.14 @@ -467,6 +467,15 @@
1.15 fi
1.16 done
1.17
1.18 + if [ "${CT_OVERIDE_CONFIG_GUESS_SUB}" = "y" ]; then
1.19 + CT_DoLog ALL "Overiding config.guess and config.sub"
1.20 + for cfg in config_guess config_sub; do
1.21 + eval ${cfg}="${CT_LIB_DIR}/tools/${cfg/_/.}"
1.22 + [ -e "${CT_TOP_DIR}/tools/${cfg/_/.}" ] && eval ${cfg}="${CT_TOP_DIR}/tools/${cfg/_/.}"
1.23 + find . -type f -name "${cfg/_/.}" -exec cp -v "${!cfg}" {} \; |CT_DoLog ALL
1.24 + done
1.25 + fi
1.26 +
1.27 CT_Popd
1.28 }
1.29