The test was creating a file named "-.o" in my workdir.
We don't want the output. Use -fsyntax-only.

Signed-off-by: Christian Melki <christian.me...@t2data.com>
---
 rules/glibc.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/glibc.make b/rules/glibc.make
index a550f4b92..e3b3574cc 100644
--- a/rules/glibc.make
+++ b/rules/glibc.make
@@ -31,7 +31,7 @@ $(STATEDIR)/glibc.prepare:
 ifdef PTXCONF_GLIBC_Y2038
        @echo Checking Y2038 support...
        @echo 'static_assert(sizeof(time_t) == 8, "y2038");' | \
-               $(CROSS_CC) -c -x c -include sys/types.h -include assert.h - 
&>/dev/null || \
+               $(CROSS_CC) -c -x c -fsyntax-only -include sys/types.h -include 
assert.h - &>/dev/null || \
                ptxd_bailout "PTXCONF_GLIBC_Y2038 is enabled but the toolchain 
has no Y2038 support!"
 endif
        @$(call touch)
-- 
2.34.1


Reply via email to