aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2022-12-06 17:15:35 +0200
committerEli Zaretskii2022-12-06 17:15:35 +0200
commited4734405dfbe26d3da7cedc4e4cd599618bf6ee (patch)
tree98fff10fa86584b7359e2fed3ab9c95e5e836af0
parent70a2eb4a0b315c3e66ab89508c9c62ca8b84ef29 (diff)
downloademacs-ed4734405dfbe26d3da7cedc4e4cd599618bf6ee.tar.gz
emacs-ed4734405dfbe26d3da7cedc4e4cd599618bf6ee.zip
Avoid crashes in a build --without-modules
* src/lread.c (syms_of_lread): Move the definitions of 'dynamic-library-suffixes' outside of the HAVE_MODULES conditional. (Bug#59832)
-rw-r--r--src/lread.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lread.c b/src/lread.c
index 68bc1431765..51ea3e5b929 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -5468,6 +5468,14 @@ to the specified file name if a suffix is allowed or required. */);
5468 Vload_suffixes = 5468 Vload_suffixes =
5469 Fcons (build_pure_c_string (MODULES_SECONDARY_SUFFIX), Vload_suffixes); 5469 Fcons (build_pure_c_string (MODULES_SECONDARY_SUFFIX), Vload_suffixes);
5470#endif 5470#endif
5471#endif
5472 DEFVAR_LISP ("module-file-suffix", Vmodule_file_suffix,
5473 doc: /* Suffix of loadable module file, or nil if modules are not supported. */);
5474#ifdef HAVE_MODULES
5475 Vmodule_file_suffix = build_pure_c_string (MODULES_SUFFIX);
5476#else
5477 Vmodule_file_suffix = Qnil;
5478#endif
5471 5479
5472 DEFVAR_LISP ("dynamic-library-suffixes", Vdynamic_library_suffixes, 5480 DEFVAR_LISP ("dynamic-library-suffixes", Vdynamic_library_suffixes,
5473 doc: /* A list of suffixes for loadable dynamic libraries. */); 5481 doc: /* A list of suffixes for loadable dynamic libraries. */);
@@ -5477,14 +5485,6 @@ to the specified file name if a suffix is allowed or required. */);
5477 Fcons (build_pure_c_string (DYNAMIC_LIB_SUFFIX), 5485 Fcons (build_pure_c_string (DYNAMIC_LIB_SUFFIX),
5478 Vdynamic_library_suffixes); 5486 Vdynamic_library_suffixes);
5479 5487
5480#endif
5481 DEFVAR_LISP ("module-file-suffix", Vmodule_file_suffix,
5482 doc: /* Suffix of loadable module file, or nil if modules are not supported. */);
5483#ifdef HAVE_MODULES
5484 Vmodule_file_suffix = build_pure_c_string (MODULES_SUFFIX);
5485#else
5486 Vmodule_file_suffix = Qnil;
5487#endif
5488 DEFVAR_LISP ("load-file-rep-suffixes", Vload_file_rep_suffixes, 5488 DEFVAR_LISP ("load-file-rep-suffixes", Vload_file_rep_suffixes,
5489 doc: /* List of suffixes that indicate representations of \ 5489 doc: /* List of suffixes that indicate representations of \
5490the same file. 5490the same file.