This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [patch] avoid '//' prefixes when sysroot is set to '/'


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
joseph@codesourcery.com


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