summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-05 21:17:23 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-05 21:17:23 +0000
commit36206aa4445180a16816c0b11eb80cc75c70c86c (patch)
treeb40410a4d57a6bc3cd1d534741b963af0746342b
parente28fe9858530ae5393882f96ac6f39f894f56da7 (diff)
Cleanup soft-float support
-rw-r--r--Rules.mak2
-rw-r--r--extra/Configs/Config.in.arch5
2 files changed, 6 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index d9d99a679..ffd4d3ce6 100644
--- a/Rules.mak
+++ b/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
diff --git a/extra/Configs/Config.in.arch b/extra/Configs/Config.in.arch
index 1e7b1129a..12a82cc6f 100644
--- a/extra/Configs/Config.in.arch
+++ b/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