mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-15 13:39:26 +08:00
Like ARM, some RISC-V implementations have hardware sqrt. Support for that can be detected at compile time, which the code did. However, the filenames were incorrect so that both the risc-v specific and general code were getting included in the resulting library. Fix this by following the ARM model and #include'ing the general code when the architecture-specific support is not available. Signed-off-by: Keith Packard <keithp@keithp.com>
22 lines
688 B
Makefile
22 lines
688 B
Makefile
## Process this file with automake to generate Makefile.in
|
|
|
|
INCLUDES = -I $(newlib_basedir)/../newlib/libm/common $(NEWLIB_CFLAGS) \
|
|
$(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
LIB_SOURCES = \
|
|
feclearexcept.c fe_dfl_env.c fegetenv.c fegetexceptflag.c \
|
|
fegetround.c feholdexcept.c feraiseexcept.c fesetenv.c \
|
|
fesetexceptflag.c fesetround.c fetestexcept.c feupdateenv.c \
|
|
s_fma.c e_sqrt.c sf_fma.c ef_sqrt.c
|
|
|
|
noinst_LIBRARIES = lib.a
|
|
lib_a_SOURCES = $(LIB_SOURCES)
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
|
lib_a_CCASFLAGS = $(AM_CCASFLAGS)
|
|
noinst_DATA =
|
|
|
|
include $(srcdir)/../../../Makefile.shared
|
|
|
|
ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|