Hi Bernard, Sorry about the problems you had posting this.
On 25/09/2012 20:55, Bernard Berthomieu wrote:
To give it a serious try, I need to compile poly for various architectures, in both 32 bit and 64 bit versions.
I could successfully compile the 64 bit version for MacOSX on my macbook (that compiles in 64 bits by default), but I failed to build a 32 bit version of poly on that machine. I tried various configure options, like --build=i386-apple-darwin10.8.0, and adding -m32 to CFLAGS, CXXFLAGS and LDFLAGS, but with no success so far :-(
I have a feeling that this needs a combination of options. Makarius sent me a script to do this so he may be able to shed a bit more light on it but this is what I managed to find.
--build=i686-darwin CFLAGS='-arch i686 -O3 -I../libffi/include' CXXFLAGS='-arch i686 -O3 -I../libffi/include' CCASFLAGS='-arch i686 -O3'
Same question, but symmetric, for solaris 11 (x86) 64bit: I could successfully build a 32 bit poly (default for gcc on that machine), but could not build a 64 bit version ...
I think you'll have to experiment there unless someone has an answer. I've not had much success with Solaris/X86 myself.
David