comparison sources/patches/gcc-core-stopdefaults.patch @ 1643:87d793ebda4a

Bobby Bingham hit a case where the gcc build would detect an existing cross compiler and get confused, so he sent a patch to stop it.
author Rob Landley <rob@landley.net>
date Mon, 31 Mar 2014 05:45:19 -0500
parents
children
comparison
equal deleted inserted replaced
1642:73651ad7ad13 1643:87d793ebda4a
1 The ./configure stage of gcc is really stupid, if you have a cross compiler
2 installed on the host it'll sometimes find the linker out of it and make
3 the new cc call the old ld, for no apparent reason. (Can we say version skew?)
4
5 diff -ru gcc-core/gcc/configure gcc-core2/gcc/configure
6 --- gcc-core/gcc/configure 2007-01-01 21:44:31.000000000 -0600
7 +++ gcc-core2/gcc/configure 2014-01-05 10:43:10.245563728 -0600
8 @@ -13294,7 +13294,7 @@
9 :
10 else
11
12 -if test -x "$DEFAULT_ASSEMBLER"; then
13 +if test -x "$DEFAULT_ASSEMBLER" && false; then
14 gcc_cv_as="$DEFAULT_ASSEMBLER"
15 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
16 && test -f ../gas/Makefile \
17 @@ -13410,7 +13410,7 @@
18 :
19 else
20
21 -if test -x "$DEFAULT_LINKER"; then
22 +if test -x "$DEFAULT_LINKER" && false; then
23 gcc_cv_ld="$DEFAULT_LINKER"
24 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
25 && test -f ../ld/Makefile \