summaryrefslogtreecommitdiff
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
commit915e6b89b50eb2edac7e905039ec0592d6fc8723 (patch)
treea744d5c73dbb1964ab5dbdfffe9c322af467d86c /rules.mk
parent80475bb5737ae0f7c2ace9628b29e43d3ab22ed1 (diff)
downloadmtk-20170518-915e6b89b50eb2edac7e905039ec0592d6fc8723.zip
mtk-20170518-915e6b89b50eb2edac7e905039ec0592d6fc8723.tar.gz
mtk-20170518-915e6b89b50eb2edac7e905039ec0592d6fc8723.tar.bz2
fixup softfloat handling
SVN-Revision: 10003
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 2f52816..7ac39b1 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