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(-)
7 prompt "C-library to use:"
13 select LIBC_SUPPORT_NPTL
14 select LIBC_SUPPORT_LINUXTHREADS
19 select LIBC_SUPPORT_LINUXTHREADS
28 default "glibc" if LIBC_GLIBC
29 default "uClibc" if LIBC_UCLIBC
31 config LIBC_SUPPORT_NPTL
35 config LIBC_SUPPORT_LINUXTHREADS
40 source config/libc/glibc.in
44 source config/libc/uClibc.in