mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
guile: Leave 'scm_install_gmp_memory_functions' unchanged.
Since the switch to Guile 3.0.7 using mini-GMP, we can leave 'scm_install_gmp_memory_functions' to its default value, which is to use custom memory allocators; there is no interference with users of GMP such as GnuTLS/Nettle. * gnu/packages/aux-files/guile-launcher.c (main) [!SCM_ENABLE_MINI_GMP]: Leave 'scm_install_gmp_memory_functions' unchanged.
This commit is contained in:
parent
e4c02ac70f
commit
d92ee0a8bd
1 changed files with 5 additions and 2 deletions
|
@ -82,10 +82,13 @@ main (int argc, char **argv)
|
||||||
unsetenv ("GUILE_LOAD_PATH");
|
unsetenv ("GUILE_LOAD_PATH");
|
||||||
unsetenv ("GUILE_LOAD_COMPILED_PATH");
|
unsetenv ("GUILE_LOAD_COMPILED_PATH");
|
||||||
|
|
||||||
/* XXX: Do not let GMP allocate via libgc as this can lead to memory
|
#if !SCM_ENABLE_MINI_GMP
|
||||||
corruption in GnuTLS/Nettle since Nettle also uses GMP:
|
/* XXX: On Guile < 3.0.6 and Guile built without its bundled mini-GMP, do
|
||||||
|
not let GMP allocate via libgc as this can lead to memory corruption in
|
||||||
|
GnuTLS/Nettle since Nettle also uses GMP:
|
||||||
<https://issues.guix.gnu.org/46330>. */
|
<https://issues.guix.gnu.org/46330>. */
|
||||||
scm_install_gmp_memory_functions = 0;
|
scm_install_gmp_memory_functions = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
scm_boot_guile (argc, argv, inner_main, 0);
|
scm_boot_guile (argc, argv, inner_main, 0);
|
||||||
return 0; /* never reached */
|
return 0; /* never reached */
|
||||||
|
|
Loading…
Reference in a new issue