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 | |
8 | t) exec $CROSS_COMPILER_PREFIX $tool $flags "$@" ;; | |
9 | nil) exec $CROSS_COMPILER_PREFIX $CROSS_ARCH-$tool $flags "$@" ;; | |
10 | esac |