chiark
/
gitweb
/
~mdw
/
mdw-cross
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bring `native' architectures into the collection.
[mdw-cross]
/
bin
/
crosstool
diff --git
a/bin/crosstool
b/bin/crosstool
index cfb800c2cf0e5e8493089f85d9a0463ec4b46fba..bf9a221558ba74ec328ba9f015ed94cc54f97e72 100755
(executable)
--- a/
bin/crosstool
+++ b/
bin/crosstool
@@
-1,6
+1,10
@@
-#! /bin/sh -e
x
+#! /bin/sh -e
tool=${0##*/cross-}
xtool=$(printf %s "$tool" | tr -c a-zA-Z0-9 x)
eval flags=\$CROSS_${xtool}_FLAGS
tool=${0##*/cross-}
xtool=$(printf %s "$tool" | tr -c a-zA-Z0-9 x)
eval flags=\$CROSS_${xtool}_FLAGS
-exec $CROSS_COMPILER_PREFIX $CROSS_ARCH-$tool $flags "$@"
+
+case ${CROSS_NATIVE_P-nil} in
+ t) exec $CROSS_COMPILER_PREFIX $tool $flags "$@" ;;
+ nil) exec $CROSS_COMPILER_PREFIX $CROSS_ARCH-$tool $flags "$@" ;;
+esac