From 0fdebf9347b15a6e24f2ea0afa1eeb4067bec4de Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Fri, 29 Nov 2013 10:59:51 +0000 Subject: FPU type should not interfere with the ABI selection. Also make sure we either do real soft-float or hard-float on ARM, with the right options. Signed-off-by: Imre Kaloz git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38943 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- rules.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index 80e07d11a2..47ba928de5 100644 --- a/rules.mk +++ b/rules.mk @@ -168,9 +168,16 @@ TARGET_PATH_PKG:=$(STAGING_DIR)/host/bin:$(TARGET_PATH) ifeq ($(CONFIG_SOFT_FLOAT),y) SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft - TARGET_CFLAGS+= -msoft-float + ifeq ($(CONFIG_arm),y) + TARGET_CFLAGS+= -mfloat-abi=soft + else + TARGET_CFLAGS+= -msoft-float + endif else SOFT_FLOAT_CONFIG_OPTION:= + ifeq ($(CONFIG_arm),y) + TARGET_CFLAGS+= -mfloat-abi=hard + endif endif export PATH:=$(TARGET_PATH) -- cgit v1.2.3