diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2009-01-14 14:28:48 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2009-01-14 14:28:48 +0000 |
commit | cd3a494e99fa4bcad1c2a621b71361005528bead (patch) | |
tree | e9284b7dbd351dac996428189d90a6b479dbfc52 /libm/sh/Makefile.arch | |
parent | c617dd785dde62eb0862c576f679fdd43dcd3a9a (diff) |
libm_sh: fix libm build for sh
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
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) + |