This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: [PATCH v2] Add `--with-install-sysroot=' configuration option
- From: Joseph Myers <joseph at codesourcery dot com>
- To: "Maciej W. Rozycki" <macro at wdc dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, <libffi-discuss at sourceware dot org>, <golang-dev at googlegroups dot com>, <zlib at gzip dot org>
- Date: Tue, 19 Nov 2019 00:10:54 +0000
- Subject: Re: [PATCH v2] Add `--with-install-sysroot=' configuration option
- Ironport-sdr: sjbGf7+sJVE/ktuIBrNk7LAuZLCtTy/Gjc+jhcGZIQnJPrFObOu0AM9fAujaVRstYJXvPmcoda 6VX1nR0ZehhV8Y9uLz3CuCHWKnD0iyA6/47BlWhxttaH7K3UUe+wd5gljkcEFPyMILQFwH888M SjkVlsQFr/6ujLQN5P/9lbdNgXYEia3cso57QTm41L8aEP6ULenx4H68snZjRWZ8dmuzjJPiMX DhfchjiXioFRB24+DzDPEOExWu727nkVQ2BGR4EGVVXgu1CYHWyj87R5w8mIWy3JvI1NLCnbSI sXo=
- Ironport-sdr: txCVHsklChzezMaIS7vZgPnA8CFOGZxPRyoy2Ubzk0hTPQxKTK3el+/25Blp7mBquVc83cHgM1 AFMFm3KNOlx1zBmaH1CjTjRiO5bauent8pbRKwRc1OWjtmdmGhpguDD0vMHaBc3OaB8QHeV6UO 2pibYw0fN+YckJMDbjECP/VZ14I1PFUlZx+TdBBpTY00oyP5GeFfifhJr6QLAK8wZFxoMApF0H 9PQkoNJwKh+INw/b1a0TDGWbHt+dQnZ54C8W0pge2vPHBSdHHTVw6JAPc3RIsBdZ4MQfg5Gz7A Iyw=
- References: <alpine.LFD.2.21.1911140024080.13542@redsun52.ssa.fujisawa.hgst.com> <alpine.DEB.2.21.1911140257160.24245@digraph.polyomino.org.uk> <alpine.LFD.2.21.1911152209190.13542@redsun52.ssa.fujisawa.hgst.com>
On Mon, 18 Nov 2019, Maciej W. Rozycki wrote:
> > 4. How does this interact with sysroot suffixes (again, this should be
> > made clear in the documentation)?
>
> There is no interaction, the patch merely changes where the libraries are
> installed. If the installation sysroot directory chosen is not one known
> by the GCC driver, then the newly-installed target libraries won't be
> automatically used (that of course can be changed with the appropriate use
> of the `-B', `-L' and `--sysroot=' driver options).
Perhaps the "sysroot" phrasing of the option name is confusing.
The documentation in install.texi says "@var{dir} rather than
@option{$@{gcc_tooldir@}/lib}". If that means, for example, that when
"-print-multi-os-directory" prints "../lib64" the libraries are installed
in $dir/../lib64 (so you'd pass --with-install-sysroot=/some/where/lib
rather than --with-install-sysroot=/some/where), it's definitely not a
sysroot. If in fact $dir/lib/../lib64 would be used, the documentation
should say so.
But even then, if you configure GCC using "--with-sysroot" or
"--with-build-sysroot", both of those paths are the top-level sysroot, to
which the sysroot suffix gets appended before GCC uses it for any purpose,
unless you explicitly build using --no-sysroot-suffix. So I still think
it's natural for a user of GCC's configure scripts to expect the new
option, like the other sysroot-related configure options, also to be one
to which the per-multilib sysroot suffix gets appended before GCC uses it.
And if it's not like that, the documentation needs to say so explicitly.
--
Joseph S. Myers
joseph@codesourcery.com