summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-03 05:05:03 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-03 05:05:03 +0000
commit6f65ac296a885b9364016046e1c0160dfef812b1 (patch)
treed0bebcdf707697a28e4e174e6ed6492c67b3146a /Rules.mak
parent2fe4731b98c38a3dcb57d412b1c571428d95d7d2 (diff)
Joseph S. Myers writes:
I needed this patch setting CPU_LDFLAGS to build uClibc for little-endian MIPS (with a compiler with both little-endian and big-endian multilibs); otherwise it used ld (in default big-endian mode) to link little-endian objects.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 16e9710df..6f3c90b5b 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -166,6 +166,8 @@ ifeq ($(TARGET_ARCH),arm)
endif
ifeq ($(TARGET_ARCH),mips)
+ CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN)+=-EL
+ CPU_LDFLAGS-$(ARCH_BIG_ENDIAN)+=-EB
CPU_CFLAGS-$(CONFIG_MIPS_ISA_1)+=-mips1
CPU_CFLAGS-$(CONFIG_MIPS_ISA_2)+=-mips2 -mtune=mips2
CPU_CFLAGS-$(CONFIG_MIPS_ISA_3)+=-mips3 -mtune=mips3