[haiku-development] Re: Cross-building Haiku, does output (generated) directory need to be under source tree path?

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 19 Apr 2017 08:10:16 +0000

I believe cross-tools-prefix is where to put the cross-tools to be built, or 
where to find
cross-tools already built.

Is this wrong? I ought to be able to use the same build tools with bootstrap 
and non-bootstrap but
with different BuildConfig.

Apparently configure rebuilds the tools every time even if already built.

--build-cross-tools tell configure to build the cross tools.
--cross-tools-prefix tells it to use already existing buildtools

It does not make sense to use both at the same time, I think: either you use 
existing tools, or you rebuild them?


In this case I would use two different output directories but would want the 
same build tools.

Then you first run with --build-cross-tools in your buildtools directory.
Then, you use these tools in the two other directories by using 
--cross-tools-prefix.


I also tried non-bootstrap with clang, also tried a build with gcc-aux where 
gcc version was 4.9.0
(too old? This build fell short of success.)

This should work, as long as it can compile our compilers (gcc 2.95.3 and 
5.something), and a little set of tools used on the host machine.


One big concern now is even if build is successful from directory off the 
Haiku tree, would
configure create, and would jam find, the Jamfile and build/BuildConfig.

Yes, this should work fine. The configure script can locate himself and uses 
that as a base to know where the Haiku sources are.

-- 
Adrien.

Other related posts: