projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7e4d29
)
gcc: only use -mfloat-abi for ARM, use -msoft-float for other archs
author
Peter Korsgaard
<jacmet@sunsite.dk>
Fri, 22 Aug 2008 13:59:06 +0000
(13:59 -0000)
committer
Peter Korsgaard
<jacmet@sunsite.dk>
Fri, 22 Aug 2008 13:59:06 +0000
(13:59 -0000)
Patch by Wade Berrier.
toolchain/gcc/Makefile.in
patch
|
blob
|
history
diff --git
a/toolchain/gcc/Makefile.in
b/toolchain/gcc/Makefile.in
index b323f326e65c7e513931da40fa01e5508db0a8ac..58f38fa2b14847ee5f8fd5cfcaaf17033e067859 100644
(file)
--- 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