Jeroen Demeyer on Wed, 03 Sep 2008 23:00:28 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Cross compiling PARI/what about autoconf? |
Bill Allombert wrote:
You need to set CC to your cross compiler. Assuming 'gcc -m64' work, just do: CC="gcc -m64" ./Configure For cross building i386 code on amd64, I just do: CC="gcc -m32" ./Configure There is a nifty tool linux32/linux64 that change the uname setting so that the 32 and 64-bit build get different names: For example I do:./Configure #amd64 build CC="gcc -m32" linux32 ./Configure # i386 buildmake bench #amd64 bench linux32 make bench # i386 bench
This might work with "fake" cross-compiling where you just change 32 or 64 bits, but it seems that PARI cannot support "real" cross-compiling like compiling a powerpc version on a i386 machine. That is because you execute programs in ./Configure. autoconf manages to configure (almost) everything without executing anything.