Browse Source

Cleanup soft-float support

Eric Andersen 21 years ago
parent
commit
36206aa444
2 changed files with 6 additions and 1 deletions
  1. 1 1
      Rules.mak
  2. 5 0
      extra/Configs/Config.in.arch

+ 1 - 1
Rules.mak

@@ -172,7 +172,7 @@ endif
 ifeq ($(strip $(DOPIC)),y)
     CFLAGS += -fPIC
 endif
-ifneq ($(strip $(HAS_FPU)),y)
+ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y)
     CFLAGS += -msoft-float
 endif
 

+ 5 - 0
extra/Configs/Config.in.arch

@@ -40,6 +40,11 @@ config HAS_FPU
 
 	  Most people will answer Y.
 
+config UCLIBC_HAS_SOFT_FLOAT
+	bool
+	depends on UCLIBC_HAS_FLOATS && !HAS_FPU
+	default y
+
 config DO_C99_MATH
 	bool "Enable full C99 math library support"
 	depends on UCLIBC_HAS_FLOATS