public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb/binutils-2_40-branch] configure: remove dependencies on gmp and mpfr when gdb is disabled
@ 2023-02-09 10:04 Cl?ment Chigot
  0 siblings, 0 replies; only message in thread
From: Cl?ment Chigot @ 2023-02-09 10:04 UTC (permalink / raw)
  To: bfd-cvs, gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=17294931e3e361bee6810b1a39493e214b38c5e5

commit 17294931e3e361bee6810b1a39493e214b38c5e5
Author: Clément Chigot <chigot@adacore.com>
Date:   Tue Jan 3 14:24:43 2023 +0100

    configure: remove dependencies on gmp and mpfr when gdb is disabled
    
    Since 991180627851801f1999d1ebbc0e569a17e47c74, the configure checks
    about GMP and MPFR for gdb builds have been moved to the toplevel
    configure.
    However, it doesn't take into account the --disable-gdb option. Meaning
    that a build without gdb will require these libraries even if not
    needed.
    
    ChangeLog:
    
            * configure.ac: Skip GMP and MPFR when --disable-gdb is
            provided.
            * configure: Regenerate.
    
    (cherry picked from commit 5fb0e308577143ceb313fde5538dc9ecb038f29f)

Diff:
---
 configure    | 4 +++-
 configure.ac | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 417fc5a970c..9cb953a197e 100755
--- a/configure
+++ b/configure
@@ -8032,7 +8032,9 @@ if test -d ${srcdir}/gcc ; then
   require_mpc=yes
 fi
 if test -d ${srcdir}/gdb ; then
-  require_gmp=yes
+  if test "x$enable_gdb" != xno; then
+   require_gmp=yes
+  fi
 fi
 
 gmplibs="-lmpfr -lgmp"
diff --git a/configure.ac b/configure.ac
index 3a1eb0357e5..e95a9ed116e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1585,7 +1585,9 @@ if test -d ${srcdir}/gcc ; then
   require_mpc=yes
 fi
 if test -d ${srcdir}/gdb ; then
-  require_gmp=yes
+  if test "x$enable_gdb" != xno; then
+   require_gmp=yes
+  fi
 fi
 
 gmplibs="-lmpfr -lgmp"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-09 10:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 10:04 [binutils-gdb/binutils-2_40-branch] configure: remove dependencies on gmp and mpfr when gdb is disabled Cl?ment Chigot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).