瀏覽代碼

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 <carmelo.amoroso@st.com>

Carmelo Amoroso 16 年之前
父節點
當前提交
fe939564f3
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      test/math/Makefile

+ 3 - 1
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