[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] branch master updated: Add GUILE_INSTALL_GMP_MEMORY_FUNC
From: |
Andy Wingo |
Subject: |
[Guile-commits] branch master updated: Add GUILE_INSTALL_GMP_MEMORY_FUNCTIONS to NEWS; use at build-time |
Date: |
Tue, 27 Apr 2021 15:24:17 -0400 |
This is an automated email from the git hooks/post-receive script.
wingo pushed a commit to branch master
in repository guile.
The following commit(s) were added to refs/heads/master by this push:
new 75babf8 Add GUILE_INSTALL_GMP_MEMORY_FUNCTIONS to NEWS; use at
build-time
75babf8 is described below
commit 75babf8df92b664e6118c839bad6f63e254a212b
Author: Andy Wingo <wingo@pobox.com>
AuthorDate: Tue Apr 27 21:23:08 2021 +0200
Add GUILE_INSTALL_GMP_MEMORY_FUNCTIONS to NEWS; use at build-time
* NEWS (GUILE_INSTALL_GMP_MEMORY_FUNCTIONS): Update
* libguile/numbers.c: Add needed include.
* meta/build-env.in (GUILE_INSTALL_GMP_MEMORY_FUNCTIONS): Set when
building Guile.
---
NEWS | 6 +++++-
libguile/numbers.c | 1 +
meta/build-env.in | 5 ++++-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index 397ff6c..4775923 100644
--- a/NEWS
+++ b/NEWS
@@ -67,7 +67,11 @@ GMP, and so does Guile. Since Guile 2.0.4, Guile has
installed libgc as
the GMP allocator, so since then, Guile-GnuTLS has been buggy.
Therefore, the default is now to not install libgc as the GMP allocator.
-This may slow down some uses of bignums.
+This may slow down some uses of bignums. If you know that your Guile
+program will never use a library that uses GMP, you can set the
+GUILE_INSTALL_GMP_MEMORY_FUNCTIONS=1 in your environment. Guile sets
+this environment variable when building Guile, for example. See
+"Environment Variables" in the manual, for more.
In some future, Guile may switch to GMP's more low-level "MPN" API for
working with bignums, which would allow us to regain the ability to use
diff --git a/libguile/numbers.c b/libguile/numbers.c
index a4c8308..18bd22d 100644
--- a/libguile/numbers.c
+++ b/libguile/numbers.c
@@ -68,6 +68,7 @@
#include "modules.h"
#include "pairs.h"
#include "ports.h"
+#include "simpos.h"
#include "smob.h"
#include "strings.h"
#include "values.h"
diff --git a/meta/build-env.in b/meta/build-env.in
index 27e6043..299b44f 100644
--- a/meta/build-env.in
+++ b/meta/build-env.in
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (C) 2003, 2006, 2008-2012, 2016, 2017 Free Software Foundation
+# Copyright (C) 2003, 2006, 2008-2012, 2016, 2017, 2021 Free Software
Foundation
#
# This file is part of GNU Guile.
#
@@ -90,6 +90,9 @@ done
export LTDL_LIBRARY_PATH
export DYLD_LIBRARY_PATH
+GUILE_INSTALL_GMP_MEMORY_FUNCTIONS=1
+export GUILE_INSTALL_GMP_MEMORY_FUNCTIONS
+
if [ x"$PKG_CONFIG_PATH" = x ]
then
PKG_CONFIG_PATH="${top_builddir}/meta"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Guile-commits] branch master updated: Add GUILE_INSTALL_GMP_MEMORY_FUNCTIONS to NEWS; use at build-time,
Andy Wingo <=