Commit | Line | Data |
---|---|---|
a3c31732 | 1 | #! /bin/sh -e |
1a141be6 MW |
2 | |
3 | tool=${0##*/cross-} | |
4 | xtool=$(printf %s "$tool" | tr -c a-zA-Z0-9 x) | |
5 | eval flags=\$CROSS_${xtool}_FLAGS | |
a3c31732 MW |
6 | |
7 | case ${CROSS_NATIVE_P-nil} in | |
b6a56709 MW |
8 | t) |
9 | exec $CROSS_COMPILER_PREFIX$tool $flags "$@" | |
10 | ;; | |
11 | nil) | |
12 | eval crosstool=\${CROSS_${xtool}_TOOL-\$CROSS_ARCH-\$tool} | |
13 | exec $CROSS_COMPILER_PREFIX$crosstool $flags "$@" | |
14 | ;; | |
a3c31732 | 15 | esac |