[haiku-commits] Re: Aw: Re: BRANCH HaikuPM-github.package-management [f56958c] data/bin build/jam build/jam/repositories/HaikuPorts

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 13 Aug 2013 01:23:52 +0200

On 12/08/2013 18:18, Ingo Weinhold wrote:
> "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>:
>> Am 12/08/2013 17:30, schrieb HaikuPM-github.package-management:
>>> b57470a: Remove setgcc
>>
>> How does this work when compiling stuff under Haiku now?
>> I mean not the Haiku repository, but other stuff.
> 
> The tools for the secondary architecture live in /boot/common/bin/<arch> and 
> they are symlinked
> to /boot/common/bin as <command>-<arch>. So your options would be:
> 1. Prepend /boot/common/bin/<arch> to PATH. For convenience we might want to 
> provide a shell
> function that can do and undo that.
> 2. Simply use gcc-<arch> to build stuff.

setgcc was a fragile trick anyway, and it didn't allow building for more
than 1 arch at a time...

The recommended way is to use a prefix on the buildtools, as with
crosscompiles. Some configure scripts actually autodetect those when
passed $CROSSCOMPILE.

François.

Other related posts: