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 -urN uClibc-dist/libc/sysdeps/linux/common/bits/uClibc_touplow.h uClibc/libc/sysdeps/linux/common/bits/uClibc_touplow.h
2 --- uClibc-dist/libc/sysdeps/linux/common/bits/uClibc_touplow.h Fri Jun 3 13:30:25 2005
3 +++ uClibc/libc/sysdeps/linux/common/bits/uClibc_touplow.h Fri Jun 3 13:30:39 2005
6 /* glibc uses the equivalent of - typedef __int32_t __ctype_touplow_t; */
8 -typedef __uint16_t __ctype_mask_t;
9 +typedef __uint32_t __ctype_mask_t;
11 #ifdef __UCLIBC_HAS_CTYPE_SIGNED__
13 -typedef __int16_t __ctype_touplow_t;
14 +typedef __int32_t __ctype_touplow_t;
15 #define __UCLIBC_CTYPE_B_TBL_OFFSET 128
16 #define __UCLIBC_CTYPE_TO_TBL_OFFSET 128