Re: [PATCH] Fix libgloss being built for disabled multilibs

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Oct 30 14:58, Jozef Lawrynowicz wrote:
> 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 <[email protected]>
> 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
> 

Pushed.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl29oYoACgkQ9TYGna5E
T6BUzg/7BrqZypStCh1cI1SFY1o2vwci4dEXet2FcDwiDJBNo25gDLNdOzixUjw4
/GWo3Y8vXdRnUgrovwVtCEjLp6lUcF6STTFTQV9wvX/wALMc2aVCxMlQL9GFZNNS
6+zrWIaBGjWSHK/7gP2AVNm1kpo8AK7mr7H2St3sY640HfjldyDqq+EUhJC/RO6B
gWa7Wv/JvXyizYKveLo0x3pasSU5Ix1Q1qnfecxEe4u+/7gwbB4mtmtaanr8369D
H2ysX6J/hK+XRAo0L4CLgQ5Tzh1eecliv7MthySIsBlD4HEi0thAq1NdNj+wbC4J
g0pcsIzFon+HLeRgt0416mKAdufx2GuYEifD9NeaNAEx2Rfw8JPWmLCYCpfMS8G2
8CXzihjafMkYo83Hz24YlAKPd/J1KySuVcu1+WNTJs4c37Ri93p+SbsdW5Jd0sXB
Zmc9oHp3I69zmAz7l/tkDNsQSQlc4msWjbys+ORy4KLYZZhoZhGOU1+9YTKjMaUz
wBJvGOa/bFI5dHujh6GGm9QIItac9zd6IkQXfT2/VXTGNVq0HMEwS9WXRADmHmKe
8Axd2l64gCmqaPzom6pORHn5upVgtDz1UW/fbFEzfdVrwFeLXy30YgVnPPcJv+Pn
fdy+AfkIYLvL5R4QpuQZgMW7+KLI7E/fvuBJmOvqAGIF8wH+Eh0=
=gXpW
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.