From 32fc382e9e2034daaad52cabc36bcc6c06d0e292 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 21 Nov 2025 10:01:10 +0800 Subject: [PATCH] Disable C23 for Android builds * configure.ac (ac_cv_prog_cc_c23): Define to no when configuring for Android. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 44d9cae1e7e..db4cc277e48 100644 --- a/configure.ac +++ b/configure.ac @@ -49,6 +49,10 @@ if test "$XCONFIGURE" = "android"; then CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=32" enable_largefile=no enable_year2038=no]) + # C23 cannot be enabled for Android builds on account of + # incompatibilities in many external dependencies (glib, librsvg, + # etc.) and system headers. + ac_cv_prog_cc_c23=no fi dnl Set emacs_config_options to the options of 'configure', quoted for the shell,