else \
echo "#undef __UCLIBC_HAS_FLOATS__" >> uClibc_config.h ; \
fi
- @if [ "$(HAS_LIBM_FLOAT)" = "true" ] ; then \
- echo "#define __UCLIBC_HAS_LIBM_FLOAT__ 1" >> uClibc_config.h ; \
- else \
- echo "#undef __UCLIBC_HAS_LIBM_FLOAT__" >> uClibc_config.h ; \
- fi
- @if [ "$(HAS_LIBM_DOUBLE)" = "true" ] ; then \
- echo "#define __UCLIBC_HAS_LIBM_DOUBLE__ 1" >> uClibc_config.h ; \
- else \
- echo "#undef __UCLIBC_HAS_LIBM_DOUBLE__" >> uClibc_config.h ; \
- fi
- @if [ "$(HAS_LIBM_LONG_DOUBLE)" = "true" ] ; then \
- echo "#define __UCLIBC_HAS_LIBM_LONG_DOUBLE__ 1" >> uClibc_config.h ; \
- else \
- echo "#undef __UCLIBC_HAS_LIBM_LONG_DOUBLE__" >> uClibc_config.h ; \
- fi
@if [ "$(HAS_LONG_LONG)" = "true" ] ; then \
echo "#define __UCLIBC_HAS_LONG_LONG__ 1" >> uClibc_config.h ; \
else \
CFLAGS += -fPIC
endif
-# Disable libm if HAS_FLOATING_POINT isn't true.
-ifneq ($(HAS_FLOATING_POINT),true)
- HAS_LIBM_FLOAT = false
- HAS_LIBM_DOUBLE = false
- HAS_LIBM_LONG_DOUBLE = false
-endif
-
ifeq ($(strip $(HAVE_SHARED)),true)
LIBRARY_CACHE=#-DUSE_CACHE
ifeq ($(strip $(BUILD_UCLIBC_LDSO)),true)
Any takers?
-On ARM, the kernel fp math emulator uses a funky byte ordering
- that causes some of our math functions to produce bad results.
- We need to fix up the things for the wierd ARM byte ordering.
Fix regex so it isn't so stinking big
Fix glob so it isn't so stinking big
Integrate Jeff Garzik's key-value reading code for pwd/grp, /etc/hosts, etc
Right now, getopt has different behavior when dynamically vs when
statically linked, violating the principle of least surprise.
-Split the math library, such that by default we only build C89
- math functions, i.e.: acos asin atan atan2 ceil cos cosh exp
- fabs floor fmod frexp ldexp log log10 modf pow sin sinh sqrt
- tan tanh
-
-----------------------------------------------------------------------------
Manuel's unsorted todo:
TARGET_CC= $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
TARGET_CFLAGS+=-D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
-
ifeq ($(strip $(DO_C99_MATH)),true)
CSRC = e_acos.c e_acosh.c e_asin.c e_atan2.c e_atanh.c e_cosh.c\
e_exp.c e_fmod.c e_gamma.c e_gamma_r.c e_hypot.c e_j0.c\
OBJS=$(COBJS)
-
+ifneq ($(strip $(HAS_FLOATING_POINT)),true)
+all: clean
+else
all: $(OBJS) $(COBJS1) $(LIBM)
+endif
$(LIBM): ar-target
@if [ -f $(LIBM) ] ; then \