Introduce target-specific LDFLAGS, the same way we have CFLAGS for the target.
It seems to be helping gcc somewhat into telling the correct endianness to ld that sticks with little endian even when the target is big (eg armeb-unknown-linux-uclibcgnueabi).
There's still work to do, especially finish the gcc part that is not in this commit.
/trunk/scripts/functions | 9 7 2 0 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
1 --- gcc/libgomp/configure
2 +++ gcc/libgomp/configure
6 # This must be Linux ELF.
9 lt_cv_deplibs_check_method=pass_all
12 --- gcc/gcc/config/cris/linux.h
13 +++ gcc/gcc/config/cris/linux.h
15 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
17 #undef CRIS_SUBTARGET_VERSION
18 -#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
20 +# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
22 +# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
25 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
27 --- gcc/libstdc++-v3/configure
28 +++ gcc/libstdc++-v3/configure
32 # This must be Linux ELF.
35 lt_cv_deplibs_check_method=pass_all
38 --- gcc/zlib/configure
39 +++ gcc/zlib/configure
43 # This must be Linux ELF.
46 lt_cv_deplibs_check_method=pass_all
49 --- gcc/libobjc/configure
50 +++ gcc/libobjc/configure
54 # This must be Linux ELF.
57 lt_cv_deplibs_check_method=pass_all
60 --- gcc/libgfortran/configure
61 +++ gcc/libgfortran/configure
65 # This must be Linux ELF.
68 lt_cv_deplibs_check_method=pass_all
71 --- gcc/libmudflap/configure
72 +++ gcc/libmudflap/configure
76 # This must be Linux ELF.
79 lt_cv_deplibs_check_method=pass_all
82 --- gcc/boehm-gc/configure
83 +++ gcc/boehm-gc/configure
87 # This must be Linux ELF.
90 lt_cv_deplibs_check_method=pass_all
93 --- gcc/libffi/configure
94 +++ gcc/libffi/configure
98 # This must be Linux ELF.
101 lt_cv_deplibs_check_method=pass_all
104 --- gcc/libssp/configure
105 +++ gcc/libssp/configure
106 @@ -4409,7 +4409,7 @@
109 # This must be Linux ELF.
112 lt_cv_deplibs_check_method=pass_all
115 --- gcc/contrib/regression/objs-gcc.sh
116 +++ gcc/contrib/regression/objs-gcc.sh
119 make all-gdb all-dejagnu all-ld || exit 1
120 make install-gdb install-dejagnu install-ld || exit 1
121 +elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
123 + make all-gdb all-dejagnu all-ld || exit 1
124 + make install-gdb install-dejagnu install-ld || exit 1
125 elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
126 make bootstrap || exit 1
127 make install || exit 1
128 --- gcc/libjava/classpath/ltconfig
129 +++ gcc/libjava/classpath/ltconfig
132 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
135 +linux-gnu*|linux-uclibc*) ;;
136 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
139 @@ -1251,7 +1251,7 @@
142 # This must be Linux ELF.
148 --- gcc/libjava/classpath/configure
149 +++ gcc/libjava/classpath/configure
150 @@ -4665,7 +4665,7 @@
153 # This must be Linux ELF.
156 lt_cv_deplibs_check_method=pass_all
159 --- gcc/libjava/configure
160 +++ gcc/libjava/configure
161 @@ -5212,7 +5212,7 @@
164 # This must be Linux ELF.
167 lt_cv_deplibs_check_method=pass_all
175 # This must be Linux ELF.
178 lt_cv_deplibs_check_method=pass_all
185 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
188 +linux-gnu*|linux-uclibc*) ;;
189 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
192 @@ -1251,7 +1251,7 @@
195 # This must be Linux ELF.