This is the mail archive of the
mailing list for the GCC project.
Re: [patch] avoid '//' prefixes when sysroot is set to '/'
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Matthias Klose <doko at ubuntu dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 8 Feb 2012 01:01:30 +0000 (UTC)
- Subject: Re: [patch] avoid '//' prefixes when sysroot is set to '/'
- References: <4F2024FC.email@example.com> <Pine.LNX.firstname.lastname@example.org> <4F21646A.email@example.com> <Pine.LNX.firstname.lastname@example.org> <4F31BE47.email@example.com>
On Wed, 8 Feb 2012, Matthias Klose wrote:
> there is one more issue, when configuring
> --with-sysroot=/ --with-gxx-include-dir=/usr/include/c++/4.7
> in that the leading / is stripped away in configure.ac. This case needs an
> explicit check. Ok for the trunk?
This looks like a case where any sysroot with a trailing '/' could
misbehave and remove a leading '/' that should be left there, i.e. where
gcc_gxx_without_sysroot should be computed in a way that ignores any
trailing '/' on the sysroot setting. Or is such a removal actually
harmless in all cases except for plain '/' as the sysroot?
Joseph S. Myers