Waldek Hebisch wrote:
On a related note, can someone explain me how to build gpc for Mac OS X/ppc64? powerpc64-apple-darwin8 doesn't seem to be a supported target, but maybe it's called differently?
You should already have 64 bit compiler proper (at least when using sufficiently new backend) -- try what `-print-multi-lib' gives you. The problem is that ATM gpc runtime is build only in one version (32 bit one) -- one have to build 64 bit runtime by hand. Peter Keenan described what to do for 64 bit AIX:
http://www.gnu-pascal.de/crystal/gpc/en/mail11264.html
With obvious changes this should apply to OS/X.
You may want to have a look at this thread http://www.gnu-pascal.de/crystal/gpc/en/thread13468.html in the mailing list archives. There are two main points
* for Mac OS X, you need a gcc-4 back-end (which gpc supports preliminary) * you have to manually build a 64-bit libgpc.a and combine it with the 32-bit libgpc.a, using lipo * then, you can use -m64 to create a 64-bit executable.
I will be pleased to help with problems that may arise (I have built for 64-bit powerpc, not yet for 64-bit x86).
Regards,
Adriaan van Os