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 diff -durN gcc-4.2.1.orig/boehm-gc/configure gcc-4.2.1/boehm-gc/configure
2 --- gcc-4.2.1.orig/boehm-gc/configure 2007-07-19 16:33:56.000000000 +0200
3 +++ gcc-4.2.1/boehm-gc/configure 2007-08-03 20:29:22.000000000 +0200
7 # This must be Linux ELF.
10 lt_cv_deplibs_check_method=pass_all
13 diff -durN gcc-4.2.1.orig/contrib/regression/objs-gcc.sh gcc-4.2.1/contrib/regression/objs-gcc.sh
14 --- gcc-4.2.1.orig/contrib/regression/objs-gcc.sh 2005-08-15 02:41:31.000000000 +0200
15 +++ gcc-4.2.1/contrib/regression/objs-gcc.sh 2007-08-03 20:29:22.000000000 +0200
18 make all-gdb all-dejagnu all-ld || exit 1
19 make install-gdb install-dejagnu install-ld || exit 1
20 +elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
22 + make all-gdb all-dejagnu all-ld || exit 1
23 + make install-gdb install-dejagnu install-ld || exit 1
24 elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
25 make bootstrap || exit 1
26 make install || exit 1
27 diff -durN gcc-4.2.1.orig/gcc/config/cris/linux.h gcc-4.2.1/gcc/config/cris/linux.h
28 --- gcc-4.2.1.orig/gcc/config/cris/linux.h 2006-02-18 12:12:51.000000000 +0100
29 +++ gcc-4.2.1/gcc/config/cris/linux.h 2007-08-03 20:29:22.000000000 +0200
31 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
33 #undef CRIS_SUBTARGET_VERSION
34 -#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
36 +# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
38 +# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
41 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
43 diff -durN gcc-4.2.1.orig/libffi/configure gcc-4.2.1/libffi/configure
44 --- gcc-4.2.1.orig/libffi/configure 2007-07-19 16:33:56.000000000 +0200
45 +++ gcc-4.2.1/libffi/configure 2007-08-03 20:29:22.000000000 +0200
49 # This must be Linux ELF.
52 lt_cv_deplibs_check_method=pass_all
55 diff -durN gcc-4.2.1.orig/libgfortran/configure gcc-4.2.1/libgfortran/configure
56 --- gcc-4.2.1.orig/libgfortran/configure 2007-07-19 16:33:56.000000000 +0200
57 +++ gcc-4.2.1/libgfortran/configure 2007-08-03 20:29:22.000000000 +0200
61 # This must be Linux ELF.
64 lt_cv_deplibs_check_method=pass_all
67 diff -durN gcc-4.2.1.orig/libgomp/configure gcc-4.2.1/libgomp/configure
68 --- gcc-4.2.1.orig/libgomp/configure 2007-07-19 16:33:56.000000000 +0200
69 +++ gcc-4.2.1/libgomp/configure 2007-08-03 20:29:22.000000000 +0200
73 # This must be Linux ELF.
76 lt_cv_deplibs_check_method=pass_all
79 diff -durN gcc-4.2.1.orig/libjava/classpath/configure gcc-4.2.1/libjava/classpath/configure
80 --- gcc-4.2.1.orig/libjava/classpath/configure 2007-01-17 19:10:26.000000000 +0100
81 +++ gcc-4.2.1/libjava/classpath/configure 2007-08-03 20:29:22.000000000 +0200
85 # This must be Linux ELF.
88 lt_cv_deplibs_check_method=pass_all
91 diff -durN gcc-4.2.1.orig/libjava/classpath/ltconfig gcc-4.2.1/libjava/classpath/ltconfig
92 --- gcc-4.2.1.orig/libjava/classpath/ltconfig 2006-08-07 22:37:50.000000000 +0200
93 +++ gcc-4.2.1/libjava/classpath/ltconfig 2007-08-03 20:29:22.000000000 +0200
96 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
99 +linux-gnu*|linux-uclibc*) ;;
100 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
103 @@ -1251,7 +1251,7 @@
106 # This must be Linux ELF.
112 diff -durN gcc-4.2.1.orig/libjava/configure gcc-4.2.1/libjava/configure
113 --- gcc-4.2.1.orig/libjava/configure 2007-07-19 16:33:56.000000000 +0200
114 +++ gcc-4.2.1/libjava/configure 2007-08-03 20:29:22.000000000 +0200
115 @@ -5424,7 +5424,7 @@
118 # This must be Linux ELF.
121 lt_cv_deplibs_check_method=pass_all
124 diff -durN gcc-4.2.1.orig/libmudflap/configure gcc-4.2.1/libmudflap/configure
125 --- gcc-4.2.1.orig/libmudflap/configure 2006-12-04 12:13:07.000000000 +0100
126 +++ gcc-4.2.1/libmudflap/configure 2007-08-03 20:29:22.000000000 +0200
127 @@ -5394,7 +5394,7 @@
130 # This must be Linux ELF.
133 lt_cv_deplibs_check_method=pass_all
136 diff -durN gcc-4.2.1.orig/libobjc/configure gcc-4.2.1/libobjc/configure
137 --- gcc-4.2.1.orig/libobjc/configure 2006-10-15 09:42:57.000000000 +0200
138 +++ gcc-4.2.1/libobjc/configure 2007-08-03 20:29:22.000000000 +0200
139 @@ -3314,7 +3314,7 @@
142 # This must be Linux ELF.
145 lt_cv_deplibs_check_method=pass_all
148 diff -durN gcc-4.2.1.orig/libssp/configure gcc-4.2.1/libssp/configure
149 --- gcc-4.2.1.orig/libssp/configure 2006-10-15 09:42:57.000000000 +0200
150 +++ gcc-4.2.1/libssp/configure 2007-08-03 20:29:22.000000000 +0200
151 @@ -4480,7 +4480,7 @@
154 # This must be Linux ELF.
157 lt_cv_deplibs_check_method=pass_all
160 diff -durN gcc-4.2.1.orig/libstdc++-v3/configure gcc-4.2.1/libstdc++-v3/configure
161 --- gcc-4.2.1.orig/libstdc++-v3/configure 2007-06-29 01:02:05.000000000 +0200
162 +++ gcc-4.2.1/libstdc++-v3/configure 2007-08-03 20:29:22.000000000 +0200
163 @@ -4283,7 +4283,7 @@
166 # This must be Linux ELF.
169 lt_cv_deplibs_check_method=pass_all
172 diff -durN gcc-4.2.1.orig/libtool.m4 gcc-4.2.1/libtool.m4
173 --- gcc-4.2.1.orig/libtool.m4 2005-07-16 04:30:53.000000000 +0200
174 +++ gcc-4.2.1/libtool.m4 2007-08-03 20:29:22.000000000 +0200
178 # This must be Linux ELF.
181 lt_cv_deplibs_check_method=pass_all
184 diff -durN gcc-4.2.1.orig/ltconfig gcc-4.2.1/ltconfig
185 --- gcc-4.2.1.orig/ltconfig 2007-02-14 18:08:35.000000000 +0100
186 +++ gcc-4.2.1/ltconfig 2007-08-03 20:29:22.000000000 +0200
189 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
192 +linux-gnu*|linux-uclibc*) ;;
193 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
196 @@ -1251,7 +1251,7 @@
199 # This must be Linux ELF.
205 diff -durN gcc-4.2.1.orig/zlib/configure gcc-4.2.1/zlib/configure
206 --- gcc-4.2.1.orig/zlib/configure 2007-01-17 19:10:26.000000000 +0100
207 +++ gcc-4.2.1/zlib/configure 2007-08-03 20:29:22.000000000 +0200
208 @@ -3429,7 +3429,7 @@
211 # This must be Linux ELF.
214 lt_cv_deplibs_check_method=pass_all