aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2007-12-28 18:06:47 +0000
committerImre Kaloz <kaloz@openwrt.org>2007-12-28 18:06:47 +0000
commit08e9c42e677999f887c9dd0b3367c7d669f8a1c7 (patch)
tree98edbe569302e589683a6a06528895a834d11962 /rules.mk
parent643ab9877cd07fe334de4b9f1f26fe01a4d2e6f2 (diff)
downloadupstream-08e9c42e677999f887c9dd0b3367c7d669f8a1c7.tar.gz
upstream-08e9c42e677999f887c9dd0b3367c7d669f8a1c7.tar.bz2
upstream-08e9c42e677999f887c9dd0b3367c7d669f8a1c7.zip
fixup softfloat handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10003 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 2f528162f4..7ac39b123e 100644
--- a/rules.mk
+++ b/rules.mk
@@ -61,6 +61,13 @@ TARGET_CFLAGS:=$(TARGET_OPTIMIZATION) -fhonour-copts
TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
+ifeq ($(CONFIG_SOFT_FLOAT),y)
+SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
+TARGET_CFLAGS+=-msoft-float
+else
+SOFT_FLOAT_CONFIG_OPTION:=
+endif
+
export PATH:=$(TARGET_PATH)
export STAGING_DIR
export GCC_HONOUR_COPTS:=0