summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/Makefile.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/miscutils/Makefile.in b/miscutils/Makefile.in
index 892f7d1..773f558 100644
--- a/miscutils/Makefile.in
+++ b/miscutils/Makefile.in
@@ -39,6 +39,13 @@ MISCUTILS-$(CONFIG_WATCHDOG) += watchdog.o
libraries-y+=$(MISCUTILS_DIR)$(MISCUTILS_AR)
+needlibm-y:=
+needlibm-$(CONFIG_DC) := y
+
+ifeq ($(needlibm-y),y)
+ LIBRARIES += -lm
+endif
+
$(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
$(AR) -ro $@ $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))