summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-08-22 13:59:06 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-08-22 13:59:06 +0000
commit1243071b1658ff5a78b6ce756361868a215dfac2 (patch)
tree57a39f09eb9adf6afcde3a57f65abe47b3bb6eaf
parentb7e4d291e6d180a96a5a6ed9cd166575e18e26fb (diff)
gcc: only use -mfloat-abi for ARM, use -msoft-float for other archs
Patch by Wade Berrier.
-rw-r--r--toolchain/gcc/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile.in b/toolchain/gcc/Makefile.in
index b323f326e..58f38fa2b 100644
--- a/toolchain/gcc/Makefile.in
+++ b/toolchain/gcc/Makefile.in
@@ -40,7 +40,11 @@ SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
ifeq ($(BR2_SOFT_FLOAT_FP),y)
TARGET_SOFT_FLOAT:=-mfloat-abi=softfp
else # no fp at all
+ifeq ($(BR2_arm),y) # only set float-abi for arm
TARGET_SOFT_FLOAT:=-mfloat-abi=soft
+else
+TARGET_SOFT_FLOAT:=-msoft-float
+endif
endif
else # not gcc-4.x
TARGET_SOFT_FLOAT:=-msoft-float