Bill Allombert on Wed, 25 Apr 2007 19:42:09 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Mac OS Cross-compiling


On Wed, Apr 25, 2007 at 12:47:26PM -0400, Ryan Govostes wrote:
> Well, from my experience, after I do
> 
> ./Configure --host=i386-darwin
> make gp

Actually it looks like that:

$ ./Configure --host=i386-darwin
....
Shall we try to build pari 2.4.2 (development CHANGES-1.1742) now (y/n)? [n]
Ok. Type "cd Odarwin-i386; make install" when you are ready
Bye !

So you need to do
$ cd Odarwin-i386; make gp
or 
$ make -C Odarwin-i386 gp

> During 'make gp', I get an error along the lines of
> 
> $ cd Odarwin-ppc
> cd: Odarwin-ppc: No such file or directory
> 
> So it looks like it tries to go to the directory of the native arch,
> regardless of what the config'd architecture was.

Yes, this is true. This way 'make gp' always work if your home directory
is shared between different plateforms, and does not depend on the last
time you ran Configure. If you need to build for another target, you
have to use cd or -C.

Cheers,
Bill.