summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak11
1 files changed, 3 insertions, 8 deletions
diff --git a/Rules.mak b/Rules.mak
index 4a8dbc186..804f27091 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -216,6 +216,9 @@ CPU_CFLAGS-y += $(call check_gcc,-std=gnu99,)
CPU_CFLAGS-$(UCLIBC_FORMAT_SHARED_FLAT) += -mid-shared-library
CPU_CFLAGS-$(UCLIBC_FORMAT_FLAT_SEP_DATA) += -msep-data
+CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN) += -Wl,-EL
+CPU_LDFLAGS-$(ARCH_BIG_ENDIAN) += -Wl,-EB
+
PICFLAG-y := -fPIC
PICFLAG-$(UCLIBC_FORMAT_FDPIC_ELF) := -mfdpic
PICFLAG := $(PICFLAG-y)
@@ -309,8 +312,6 @@ endif
ifeq ($(TARGET_ARCH),arm)
OPTIMIZATION+=-fstrict-aliasing
- CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN)+=-Wl,-EL
- CPU_LDFLAGS-$(ARCH_BIG_ENDIAN)+=-Wl,-EB
CPU_CFLAGS-$(ARCH_LITTLE_ENDIAN)+=-mlittle-endian
CPU_CFLAGS-$(ARCH_BIG_ENDIAN)+=-mbig-endian
CPU_CFLAGS-$(CONFIG_GENERIC_ARM)+=
@@ -335,8 +336,6 @@ ifeq ($(TARGET_ARCH),arm)
endif
ifeq ($(TARGET_ARCH),mips)
- CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN)+=-Wl,-EL
- CPU_LDFLAGS-$(ARCH_BIG_ENDIAN)+=-Wl,-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
@@ -365,8 +364,6 @@ endif
ifeq ($(TARGET_ARCH),sh)
OPTIMIZATION+=-fstrict-aliasing
OPTIMIZATION+= $(call check_gcc,-mprefergot,)
- CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN)+=-Wl,-EL
- CPU_LDFLAGS-$(ARCH_BIG_ENDIAN)+=-Wl,-EB
CPU_CFLAGS-$(ARCH_LITTLE_ENDIAN)+=-ml
CPU_CFLAGS-$(ARCH_BIG_ENDIAN)+=-mb
CPU_CFLAGS-$(CONFIG_SH2)+=-m2
@@ -382,8 +379,6 @@ endif
ifeq ($(TARGET_ARCH),sh64)
OPTIMIZATION+=-fstrict-aliasing
- CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN):=-Wl,-EL
- CPU_LDFLAGS-$(ARCH_BIG_ENDIAN):=-Wl,-EB
CPU_CFLAGS-$(ARCH_LITTLE_ENDIAN):=-ml
CPU_CFLAGS-$(ARCH_BIG_ENDIAN):=-mb
CPU_CFLAGS-$(CONFIG_SH5)+=-m5-32media