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]

Re: patch for libstdc++/libio configuration problem


>  In message <199905110149.SAA07123@beauty.cygnus.com>you write:
>  > This isn't a pretty patch, but it's more correct than the patches
>  > that have been submitted to solve the problem.  The current code
>  > incorrectly assumes $host_alias is the host_alias for the gcc
>  > build.  For the target libraries, $host_alias is the same as the
>  > target thus causing the current code to fail for all but cygwin
>  > or mingw native.
>What are the precise host, target & build values?

If I configure my tree with
    host = cygwin, target = mips-elf, build = solaris2.5
Then the target libraries end up with
    host = mips-elf, target = mips-elf, build = solaris2.5

Because the hostness of the compiler used to build the libraries
is the same as the target I originally configured for (gcc emits
mips-elf so the host for that compiler is mips-elf).  It doesn't
matter what the build host is.  It could be UNIX, it could be
cygwin.  It fails if building a cross compiler natively as well.

Since there is no way to know what the EXEEXT was for the host, the
only thing to really do is to test for the case of xgcc and xgcc.exe.
Or get rid of the test entirely.  It's is useful to some folks to be
able to build the target libraries with an already installed compiler.

--Angela


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