diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 07:06:49 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 07:06:49 +0000 |
commit | 40770ac31c96ea60328e22a927d62acfe4e0fe99 (patch) | |
tree | ee85d20b67ef033f8294decb1e249c93a259bd20 /Rules.mak | |
parent | bbb8bf360e021020c605468074f7f21fb72c59c3 (diff) |
Bug 618, Thomas Chou: update build flags for nios target
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -176,6 +176,11 @@ ifeq ($(TARGET_ARCH),mips) CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64 -mtune=mips32 endif +ifeq ($(TARGET_ARCH),nios) + CPU_LDFLAGS-y+=-m32 + CPU_CFLAGS-y+=-m32 +endif + ifeq ($(TARGET_ARCH),sh) OPTIMIZATION+=-fstrict-aliasing OPTIMIZATION+= $(call check_gcc,-mprefergot,) @@ -281,9 +286,11 @@ ifeq ($(UCLIBC_HAS_SOFT_FLOAT),y) # If -msoft-float isn't supported, we want an error anyway. # Hmm... might need to revisit this for arm since it has 2 different # soft float encodings. +ifneq ($(TARGET_ARCH),nios) ifneq ($(TARGET_ARCH),nios2) CPU_CFLAGS += -msoft-float endif +endif ifeq ($(TARGET_ARCH),arm) # No longer needed with current toolchains, but leave it here for now. # If anyone is actually still using gcc 2.95 (say), they can uncomment it. |