diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-07-15 10:35:41 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-07-15 10:36:12 -0400 |
commit | 045da529c91c4fe41092ae9ddf503014806467fa (patch) | |
tree | fdc805c684999a734e119d8d5cad016a2ba81e09 /Rules.mak | |
parent | 7c3eebd556a30bb14dc7afba01de9803b40a3da0 (diff) |
use -EB/-EL for all targets
These are common linker options rather than target specific ones, so they
should be safe to use for all targets.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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 |