diff options
Diffstat (limited to 'libm/sh/Makefile.arch')
-rw-r--r-- | libm/sh/Makefile.arch | 7 |
1 files changed, 5 insertions, 2 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) + |