[haiku-development] Re: Extra cross-compiler binaries created?

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 29 May 2008 23:11:29 +0200

On 2008-05-29 at 22:18:21 [+0200], Urias McCullough <umccullough@xxxxxxxxx> 
wrote:
> Perhaps this has been answered and clarified in the past, but recently
> while messing with the cross-compiler, it occurred to me that there
> are two copies of the gcc cross-compiler (and some of the binutils)
> created when ./configure --build-cross-tools is executed.
> 
> It seems that the primary compiler and tools are: 
> generated/bin/i586-pc-haiku-*
> 
> But it appears that there is also a gcc and friends located in
> generated/i586-pc-haiku/bin as well. What are these used for?
> 
> Forgive me if the paths are wrong, I'm repeating this from memory from
> a couple days ago.
> 
> I think it would be helpful to understand what this is used for.

My guess would be that the bin/<target>-* executables are used preferrably 
in build systems supporting cross-compilation to avoid name clashes with 
the host tools, while <target>/bin/* are the "normally" named executables. 
Note that save for "gcc" (don't know why the exception) both sets of 
executables hard link to the same files; in FSs that support hard links 
that is.

CU, Ingo

Other related posts: