summaryrefslogtreecommitdiff
path: root/libm/sh
diff options
context:
space:
mode:
Diffstat (limited to 'libm/sh')
-rw-r--r--libm/sh/Makefile.arch7
-rw-r--r--libm/sh/feholdexcpt.c1
-rw-r--r--libm/sh/fesetenv.c1
3 files changed, 5 insertions, 4 deletions
diff --git a/libm/sh/Makefile.arch b/libm/sh/Makefile.arch
index e0f4fe952..6425b3ede 100644
--- a/libm/sh/Makefile.arch
+++ b/libm/sh/Makefile.arch
@@ -5,8 +5,10 @@
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#
-libm_ARCH_SRC:=$(wildcard $(libm_ARCH_fpu_DIR)/*.c)
-libm_ARCH_OBJ:=$(patsubst $(libm_ARCH_fpu_DIR)/%.c,$(libm_ARCH_fpu_OUT)/%.o,$(libm_ARCH_SRC))
+ifeq ($(UCLIBC_HAS_FENV),y)
+libm_ARCH_SRC:=$(wildcard $(libm_ARCH_DIR)/*.c)
+libm_ARCH_OBJ:=$(patsubst $(libm_ARCH_DIR)/%.c,$(libm_ARCH_OUT)/%.o,$(libm_ARCH_SRC))
+endif
libm_ARCH_OBJS:=$(libm_ARCH_OBJ)
@@ -16,3 +18,4 @@ else
libm-a-y+=$(libm_ARCH_OBJS)
endif
libm-so-y+=$(libm_ARCH_OBJS:.o=.os)
+
diff --git a/libm/sh/feholdexcpt.c b/libm/sh/feholdexcpt.c
index 1af79b31f..70b51e8dd 100644
--- a/libm/sh/feholdexcpt.c
+++ b/libm/sh/feholdexcpt.c
@@ -27,4 +27,3 @@ feholdexcept (fenv_t *envp)
return 1;
}
-libm_hidden_def (feholdexcept)
diff --git a/libm/sh/fesetenv.c b/libm/sh/fesetenv.c
index 9f9082cf3..c5cfc1d51 100644
--- a/libm/sh/fesetenv.c
+++ b/libm/sh/fesetenv.c
@@ -24,4 +24,3 @@ fesetenv (const fenv_t *envp)
}
return 0;
}
-libm_hidden_def (fesetenv)