scripts/crosstool.sh
changeset 501 a7da743b324f
parent 466 7f9bbf94b0bb
child 507 f4145eeecb1d
     1.1 --- a/scripts/crosstool.sh	Wed Apr 30 10:43:41 2008 +0000
     1.2 +++ b/scripts/crosstool.sh	Wed May 14 17:56:33 2008 +0000
     1.3 @@ -13,6 +13,11 @@
     1.4  # and builds the tools.
     1.5  
     1.6  # Parse the common functions
     1.7 +# Note: some initialisation and sanitizing is done while parsing this file,
     1.8 +# most notably:
     1.9 +#  - set trap handler on errors,
    1.10 +#  - don't hash commands lookups,
    1.11 +#  - initialise logging.
    1.12  . "${CT_LIB_DIR}/scripts/functions"
    1.13  
    1.14  CT_STAR_DATE=`CT_DoDate +%s%N`
    1.15 @@ -386,7 +391,7 @@
    1.16      # Do that:
    1.17      CT_DoLog DEBUG "Making build system tools available"
    1.18      mkdir -p "${CT_PREFIX_DIR}/bin"
    1.19 -    for tool in ar as dlltool gcc g++ gnatbind gnatmake ld nm ranlib strip windres objcopy objdump; do
    1.20 +    for tool in ar as dlltool ${CT_CC_NATIVE:=gcc} gnatbind gnatmake ld nm ranlib strip windres objcopy objdump; do
    1.21          tmp=`CT_Which ${tool}`
    1.22          if [ -n "${tmp}" ]; then
    1.23              ln -sfv "${tmp}" "${CT_PREFIX_DIR}/bin/${CT_BUILD}-${tool}"