# define the toolchain name, default: "toolchain"
[ -z "$hdw_tc_name" ] && hdw_tc_name="toolchain"
+export tc_name=$hdw_tc_name
# lets see what root is:
root=""
set +h
umask 022
export LC_ALL=POSIX
-[ "$stage" -lt "2" -o "$hdw_crossbuild" != "0" ] && \
- export PATH="$root/${hdw_tc_name}/bin:$PATH"
+if [ "$stage" -lt "2" -a "$hdw_crossbuild" = "0" ] ; then
+ export PATH="/${tc_name}/bin:/${tc_name}/sbin:$PATH"
+elif [ "$hdw_crossbuild" != "0" ] ; then
+ export PATH="$root/${tc_name}/bin:$root/${tc_name}/sbin:$PATH"
+fi
# let's do optimization and care for crossbuilds
#