about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-11-17 17:45:41 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-11-17 17:45:41 +0000
commitc440d5d58ddef2975d0630bcb0e757d7e697496e (patch)
treef3f4b090ec3dda978f4d31a03aca2e4177be05c6
parent049cc4855ac09222a460418c9bce589cd12f7294 (diff)
downloadglibc-c440d5d58ddef2975d0630bcb0e757d7e697496e.tar.gz
glibc-c440d5d58ddef2975d0630bcb0e757d7e697496e.tar.xz
glibc-c440d5d58ddef2975d0630bcb0e757d7e697496e.zip
Actually use newly built host libraries in build-many-glibcs.py.
This patch adds the missing GCC configure options required to make use
of the newly built host libraries in build-many-glibcs.py.

	* scripts/build-many-glibcs.py (Config.build_gcc): Configure with
	newly built gmp, mpfr and mpc.
-rw-r--r--ChangeLog3
-rwxr-xr-xscripts/build-many-glibcs.py4
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d3b4844844..721ea68d24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
 
+	* scripts/build-many-glibcs.py (Config.build_gcc): Configure with
+	newly built gmp, mpfr and mpc.
+
 	* sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
 
 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index be561c3430..b0e0f5e8ef 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -813,6 +813,10 @@ class Config(object):
         # relevance with glibc's own stack checking support.
         cfg_opts = list(self.gcc_cfg)
         cfg_opts += ['--disable-libsanitizer', '--disable-libssp']
+        host_libs = self.ctx.host_libraries_installdir
+        cfg_opts += ['--with-gmp=%s' % host_libs,
+                     '--with-mpfr=%s' % host_libs,
+                     '--with-mpc=%s' % host_libs]
         if bootstrap:
             tool_build = 'gcc-first'
             # Building a static-only, C-only compiler that is