summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak6
1 files changed, 6 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index e26a75a66..28a1c84a5 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -85,6 +85,12 @@ else
DYNAMIC_LINKER=$(SYSTEM_LDSO)
endif
+# Disable libm if HAS_FLOATING_POINT isn't true.
+ifneq ($(HAS_FLOATING_POINT),true)
+ HAS_LIBM_FLOAT = false
+ HAS_LIBM_DOUBLE = false
+ HAS_LIBM_LONG_DOUBLE = false
+endif
# It turns out the currently, function-sections causes ldelf2flt to segfault.
# So till further notice, this is disabled by default....