On (15/07/09 10:32), Mike Frysinger wrote: > On Tuesday 14 July 2009 22:35:17 Amker.Cheng wrote: > > I just found that there mybe something wrong about setting > > endianess in Rules.mk for mips. > > around line Rules.mk:337, there are no codes like: > > > > CPU_CFLAGS-$(ARCH_LITTLE_ENDIAN)+=-Wl,-EL > > CPU_CFLAGS-$(ARCH_BIG_ENDIAN)+=-Wl,-EB > > > > So, by default big-endian object files will be generated even I set > > little-endian in make config(for mips). > > > > Is it a bug or I have missed anything?
actually they are CPU_LDFLAGS not CPU_CFLAGS ARCH_LITTLE_ENDIAN and ARCH_BIG_ENDIAN should be mutually exclusive and only one of those will be used depending upon what you selected in your config file. > > since -EB/-EL are standard GNU ld options rather than target-specific, we > should probably add these for everyone rather than doing it for only some > targets. I think it is in common parts on trunk already. > -mike > _______________________________________________ > uClibc mailing list > uClibc@uclibc.org > http://lists.busybox.net/mailman/listinfo/uclibc _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc