On Tuesday 15 October 2013 15:00:40 Khem Raj wrote: > On Oct 15, 2013, at 10:30 AM, Steve Ellcey wrote: > > I have a question about endiness and uclibc. I am trying to build > > multiple versions of uclibc for MIPS, including big and little endian > > versions. What I notice is that in Rules.mak there are lines: > > > > CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN) += -Wl,-EL > > CPU_LDFLAGS-$(ARCH_BIG_ENDIAN) += -Wl,-EB > > > > to add -EL or -EB to linker commands (this seems to be generic for all > > architectures). > > > > What I do not see is any generic (or MIPS specific) code to add -EL or > > -EB to CPU_CFLAGS (or CPU_FLAGS-y to be exact). I am wondering if there > > is a specific reason for this? Right now the uclibc build seems to > > assume that the compiler I am using to build uclibc will always generate > > the correct endiness without any flags. > > That was consensus we had some time ago. Otherwise these flags were getting > too many and difficult to deal with.
well, i think that was more focused on cpu/arch/tune flags. we still have endian flags in there for various targets. adding the right logic for mips would be OK imo. -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc