mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] glibc: Don't create object file from gcc test.
@ 2023-07-07  9:36 Christian Melki
  2023-07-08  7:02 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Melki @ 2023-07-07  9:36 UTC (permalink / raw)
  To: ptxdist

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.melki@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-08  7:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-07  9:36 [ptxdist] [PATCH v2] glibc: Don't create object file from gcc test Christian Melki
2023-07-08  7:02 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox