Hello,
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'
Thanks Dave and Makarius, this solves the problem for 32 bit MacOSX.
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.
Well, I tried, along the same lines:
--build=x86_64-solaris and --build=amd64-solaris CFLAGS='-m64 -O3 -I../libffi/include' CXXFLAGS='-m64 -O3 -I../libffi/include' CCASFLAGS='-m64 -O3'
But I get an error when building: elfexport.cpp: In member function `virtual void ELFExport::exportStore()': elfexport.cpp:365: error: `R_X86_64_64' undeclared (first use this function)
Solaris 11 has sys/elf_386.h and sys/elf_amd64.h, the latter defining R_AMD64_64, but elf_amd64.h is not loaded to in elfexport.cpp ...
Looks like 64 bit solaris requires some tweaking of configure and changes to elfexport.cpp. I'll try to understand the issues later.
Thanks again, Bernard.