This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: Default installation directory for include files when cross compiling


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


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