From fe939564f37f0a1022f04d0aa8cb357b37e471cd Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Thu, 12 Feb 2009 14:42:20 +0000 Subject: Pass NO_LONG_DOUBLE flag to basic-test when LONG_DOUBLE support is not enabled in uclibc to fix build. Signed-off-by: Carmelo Amoroso --- test/math/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/math/Makefile b/test/math/Makefile index 09f5425a5..542f195b1 100644 --- a/test/math/Makefile +++ b/test/math/Makefile @@ -4,6 +4,8 @@ TESTS := basic-test rint tst-definitions test-fpucw test-float test-ifloat test-double test-idouble ifeq ($(strip $(UCLIBC_HAS_LONG_DOUBLE_MATH)),y) TESTS += test-ldouble test-ildouble +else +CFLAGS_basic-test := -DNO_LONG_DOUBLE endif include ../Test.mak @@ -13,7 +15,7 @@ DODIFF_rint := 1 # NOTE: For basic-test we must disable the floating point optimization. # Only for sh architecture because in the other architecture are disabled. ifeq ($(TARGET_ARCH),sh) -CFLAGS_basic-test := -mieee +CFLAGS_basic-test += -mieee endif EXTRA_CFLAGS := -fno-builtin EXTRA_LDFLAGS := -lm -- cgit v1.2.3