Commit d23d9efd authored by Ian Lance Taylor's avatar Ian Lance Taylor
Browse files

Recognize mips-unknown-linux-gnu

parent 82a393fc
......@@ -422,6 +422,23 @@ EOF
echo alpha-unknown-linux-gnu ; exit 0
elif test "${UNAME_MACHINE}" = "sparc" ; then
echo sparc-unknown-linux-gnu ; exit 0
elif test "${UNAME_MACHINE}" = "mips" ; then
cat >dummy.c <<EOF
main(argc, argv)
int argc;
char *argv[];
#ifdef __MIPSEB__
printf ("%s-unknown-linux-gnu\n", argv[1]);
#ifdef __MIPSEL__
printf ("%sel-unknown-linux-gnu\n", argv[1]);
return 0;
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
rm -f dummy.c dummy
# Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us
# useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment