diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-20 23:09:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-20 23:09:49 +0000 |
commit | 041873bc2c46627bd89970ed81a8e6719be51570 (patch) | |
tree | 52d56d665b6353c7a9fab1a433ba03c29104501b /misc | |
parent | 303bd8a62dd3f3ab1ae4ea7d340c62c994b50e9c (diff) | |
download | px4-nuttx-041873bc2c46627bd89970ed81a8e6719be51570.tar.gz px4-nuttx-041873bc2c46627bd89970ed81a8e6719be51570.tar.bz2 px4-nuttx-041873bc2c46627bd89970ed81a8e6719be51570.zip |
Some special cases
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1719 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc')
-rw-r--r-- | misc/buildroot/toolchain/gcc/Makefile.in | 10 |
1 files changed, 8 insertions, 2 deletions
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 |