diff -r 160fc94ed49f configure --- a/configure Sun Jan 31 23:04:35 2010 +0100 +++ b/configure Tue Feb 02 23:11:25 2010 +0100 @@ -160,7 +160,7 @@ printf "Checking for '${item}'... " where="$( gcc -print-file-name="${item}" )" if [ "${where}" != "${item}" ]; then - where="$( readlink -e "${where}" )" + where="$( readlink "${where}" )" status=yes break; fi diff -r 160fc94ed49f scripts/wrapper.in --- a/scripts/wrapper.in Sun Jan 31 23:04:35 2010 +0100 +++ b/scripts/wrapper.in Tue Feb 02 23:11:25 2010 +0100 @@ -1,5 +1,10 @@ #!/bin/sh +# this wrapper will not work under BSD systems or others +# not containig the GNU readlink. +# Under those, wrapper.c will forcibly be used +# regardless of the config file setting. + canonicalizedname=$(readlink -nm "${0}") dirname="$(dirname "${canonicalizedname}")" basename="$(basename "${canonicalizedname}")" diff -r 160fc94ed49f scripts/build/internals.sh --- a/scripts/build/internals.sh Sun Jan 31 23:04:35 2010 +0100 +++ b/scripts/build/internals.sh Tue Feb 02 23:11:25 2010 +0100 @@ -42,6 +42,11 @@ CT_DoLog EXTRA "Installing toolchain wrappers" CT_Pushd "${CT_PREFIX_DIR}/bin" + if [ "$CT_SYS_OS" = "Darwin" -o "$CT_SYS_OS" = "FreeBSD" ] ; then + # wrapper does not work (when using readlink -m) + CT_DoLog EXTRA "Forcing usage of binary wrappers" + CT_TOOLS_WRAPPER="exec" + fi # Install the wrapper case "${CT_TOOLS_WRAPPER}" in script)