The default C++ headers install place

Ian Lance Taylor iant@google.com
Fri Mar 27 16:46:00 GMT 2009


Kai Ruottu <kai.ruottu@wippies.com> writes:

> This has been changed recently but why?  The "Install" docs in
> 'gcc.gnu.org' however still says :
>
> --with-gxx-include-dir=dirname
>     Specify the installation directory for G++ header files. The default
>     is prefix/include/c++/version.
>
> Writing 'make install' in gcc-4.3.3 really didn't do this but put the
> headers into '$prefix/$target/include/c++/$version' !  So they became
> "target and version dependent" instead of the earlier "version
> dependent". Only the '$prefix/include/c++/$version/$target' was that
> target dependent in them...
>
> So now one MUST specify the old default if one wants the build to
> follow the documentation and the old learned convention :(

That only happens when cross-compiling.  Right or wrong, the change was
made starting here:

http://gcc.gnu.org/ml/libstdc++/2006-06/msg00053.html

You are quite right that doc/install.texi was not updated to correct the
documented default. I've CC'ed Mark, who made the change.

Ian



More information about the Gcc-help mailing list