Skip to contentSkip to conversation

svn commit: trunk/buildroot/toolchain/gcc

Buildroot jacmet at uclibc.org 1 participant 1 message Aug 22, 2008

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2008-08-22 06:59:06 -0700 (Fri, 22 Aug 2008) New Revision: 23178

Log:
gcc: only use -mfloat-abi for ARM, use -msoft-float for other archs

Patch by Wade Berrier.

Modified:
trunk/buildroot/toolchain/gcc/Makefile.in

Changeset:
Modified: trunk/buildroot/toolchain/gcc/Makefile.in
===================================================================

buildroot/toolchain/gcc/Makefile.in +4 -0
@@ -40,8 +40,12 @@
 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
 endif