clfs

clfs.git
git clone git://git.lenczewski.org/clfs.git
Log | Files | Refs | README

clfs-env.sh (771B)


      1 #!/bin/sh
      2 
      3 . "$(dirname $0)/targets/$TARGET-config.sh"
      4 
      5 # switch to cross-toolchain
      6 export HOSTCC=$(which cc)
      7 export HOSTCXX=$(which c++)
      8 export HOSTLD=$(which ld)
      9 
     10 export ADDR2LINE=$CROSSTOOLS/bin/llvm-addr2line
     11 export AR=$CROSSTOOLS/bin/llvm-ar
     12 export AS=$CROSSTOOLS/bin/llvm-as
     13 export CC=$TARGET-cc
     14 export CPP=$CROSSTOOLS/bin/llvm-cpp
     15 export CXX=$TARGET-c++
     16 export LD=$TARGET-ld
     17 export NM=$CROSSTOOLS/bin/llvm-nm
     18 export OBJCOPY=$CROSSTOOLS/bin/llvm-objcopy
     19 export OBJDUMP=$CROSSTOOLS/bin/llvm-objdump
     20 export RANLIB=$CROSSTOOLS/bin/llvm-ranlib
     21 export READELF=$CROSSTOOLS/bin/llvm-readelf
     22 export STRIP=$CROSSTOOLS/bin/llvm-strip
     23 export STRINGS=$CROSSTOOLS/bin/llvm-strings
     24 
     25 export PATH="$CROSSTOOLS/bin:$PATH"
     26 
     27 # disable command path hashing to pick up new tools
     28 set +h