summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2023-06-06 20:09:32 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2023-06-06 20:09:32 +0200
commit2354b57b893f0e116ad3b56fe2c9826d08748094 (patch)
tree1419f72dd90b91c0a2427429400e502283870442
parent7d9d333ca85e94f190b8ddf3e2ee33cf9a5bb8ea (diff)
downloadptxdist-2354b57b893f0e116ad3b56fe2c9826d08748094.tar.gz
ptxdist-2354b57b893f0e116ad3b56fe2c9826d08748094.tar.xz
glibc: only do Y2028 check it it's actually enabled
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/glibc.make2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/glibc.make b/rules/glibc.make
index 028d64e6f..0f54bb181 100644
--- a/rules/glibc.make
+++ b/rules/glibc.make
@@ -28,10 +28,12 @@ GLIBC_VERSION := $(call ptx/config-version, PTXCONF_GLIBC)
$(STATEDIR)/glibc.prepare:
@$(call targetinfo)
+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 || \
ptxd_bailout "PTXCONF_GLIBC_Y2038 is enabled but the toolchain has no Y2028 support!"
+endif
@$(call touch)
# ----------------------------------------------------------------------------