This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix libgloss being built for disabled multilibs


If the attached patch is acceptable, I would appreciate if someone would commit
it for me, as I do not have write access.

Thanks,
Jozef
>From 6202ef1103896bf5508127353f483c6a8a5bc7b7 Mon Sep 17 00:00:00 2001
From: Jozef Lawrynowicz <jozef.l@mittosystems.com>
Date: Wed, 30 Oct 2019 14:35:21 +0000
Subject: [PATCH] Fix libgloss being built for disabled multilibs

Target libraries are considered to be built for GCC's "host", not GCC's
"target".  The "host" variable must be set by configure scripts using
"config-ml.in" to determine multilib support, otherwise disabled
multilibs (specified as a configure argument with --disable-<multilib>)
will still be built for the subdirectories those configure scripts
reside in.
---
 libgloss/configure    | 1 +
 libgloss/configure.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libgloss/configure b/libgloss/configure
index 1a4033dce..e3bde6291 100755
--- a/libgloss/configure
+++ b/libgloss/configure
@@ -3878,6 +3878,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 srcdir=${srcdir}
 target=${target}
+host=${host}
 with_multisubdir=${with_multisubdir}
 ac_configure_args="--enable-multilib ${ac_configure_args}"
 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
diff --git a/libgloss/configure.in b/libgloss/configure.in
index 41843eed1..27916b198 100644
--- a/libgloss/configure.in
+++ b/libgloss/configure.in
@@ -226,6 +226,7 @@ AC_CONFIG_FILES([Makefile],
 fi],
 srcdir=${srcdir}
 target=${target}
+host=${host}
 with_multisubdir=${with_multisubdir}
 ac_configure_args="--enable-multilib ${ac_configure_args}"
 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
-- 
2.17.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]