From 041873bc2c46627bd89970ed81a8e6719be51570 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 20 Apr 2009 23:09:49 +0000 Subject: Some special cases git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1719 42af7a65-404d-4744-a932-0658087f49c3 --- misc/buildroot/toolchain/gcc/Makefile.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'misc/buildroot') diff --git a/misc/buildroot/toolchain/gcc/Makefile.in b/misc/buildroot/toolchain/gcc/Makefile.in index 9cae98d9c..abbac5371 100644 --- a/misc/buildroot/toolchain/gcc/Makefile.in +++ b/misc/buildroot/toolchain/gcc/Makefile.in @@ -14,19 +14,25 @@ endif ifeq ($(BR2_SOFT_FLOAT),y) # gcc 3.4.x soft float configuration is different than previous versions. -ifeq ($(findstring 3.4.,$(GCC_VERSION)),3.4.) +ifeq ($(findstring x3.4.,x$(GCC_VERSION)),x3.4.) +ifneq ($(BR2_nios2),y) SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft +endif else SOFT_FLOAT_CONFIG_OPTION:=--without-float endif # again... there must be a better way -ifeq ($(findstring 4.,$(GCC_VERSION)),4.) +ifeq ($(findstring x4.,x$(GCC_VERSION)),x4.) 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 -- cgit v1.2.3