This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Default installation directory for include files when cross compiling
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, "Carlos O'Donell" <carlos at codesourcery dot com>
- Date: 16 Jun 2006 18:35:02 -0500
- Subject: Re: Default installation directory for include files when cross compiling
- References: <4493395E.6030009@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
| By default, libstdc++ seems to install include files in $prefix/include,
| even when cross-compiling.
|
| # Default case for install directory for include files.
|
| if test $version_specific_libs = no && test $gxx_include_dir = no; then
| gxx_include_dir='${prefix}/include/c++/${gcc_version}'
| fi
|
| The theory seems to be that these files are target-independent, and so
| can be shared if multiple targets are installed in one $prefix, from the
| same sources. But, $prefix/include should be for host include files,
| not for target include files, so this seems weird if you're only
| installing a cross compiler, and it clearly breaks if you install a host
| compiler built from different sources in the same prefix as one of your
| target compilers.
would not you want to use different $prefix, from host $prefix, for
different targets?
-- Gaby