patches/gcc/3.4.6/240-mips-xgot.patch
author Bart vdr. Meulen <bartvdrmeulen@gmail.com>
Mon Jul 19 23:16:02 2010 +0200 (2010-07-19)
changeset 2031 3917f2dafed1
parent 339 bd5e0a849352
permissions -rw-r--r--
complibs: fix using static companion libraries

When building a cross-compiler for a target which uses a file extension for
binaries the symbolic link to cc is not created correctly because the lookup
of the gcc binary is done in a incorrect path

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
     1 diff -durN gcc-3.4.6.orig/gcc/config/mips/t-linux gcc-3.4.6/gcc/config/mips/t-linux
     2 --- gcc-3.4.6.orig/gcc/config/mips/t-linux	1970-01-01 01:00:00.000000000 +0100
     3 +++ gcc-3.4.6/gcc/config/mips/t-linux	2007-08-15 23:08:15.000000000 +0200
     4 @@ -0,0 +1,3 @@
     5 +# Compile crtbegin/end with xgot so it works for both
     6 +# normal and large GOTs.
     7 +CRTSTUFF_T_CFLAGS = -mxgot