diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2013-11-29 10:59:51 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2013-11-29 10:59:51 +0000 |
commit | 0fdebf9347b15a6e24f2ea0afa1eeb4067bec4de (patch) | |
tree | b82c67596a543545aa3bdd656a90c4eeb8fd7d48 /rules.mk | |
parent | 5f6881f7e2cdffd5a12c514c6640e8f8baa7295a (diff) | |
download | upstream-0fdebf9347b15a6e24f2ea0afa1eeb4067bec4de.tar.gz upstream-0fdebf9347b15a6e24f2ea0afa1eeb4067bec4de.tar.bz2 upstream-0fdebf9347b15a6e24f2ea0afa1eeb4067bec4de.zip |
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 <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38943 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) |