Mirsad Todorovac wrote:
Hello, Adriaan,
Are there some special instructions/requirements to make GPC work on Mac OS X (Darwin) box?
I remember ``make bootstrap'' was required, but last time I tried it was not sufficient for a successful build. Any patch needed?
If you download the sources from my website http://www.microbizz.nl/gpc.html, you will find full building instructions and needed patches for Mac OS X 10.3 and 10.4 included in http://www.microbizz.nl/gpc344d2.src.tar.bz2.
Clarification - the building instructions there should also apply to the gpc-20051116 snapshot. If that doesn't work, try "make CC=/Developer/Pascal/gpc344d2/bin/gcc" using the FSF-gcc compiler for the build. I don't trust the Apple system compiler. When I tried to build a cross-compiler lately on powerpc-apple-darwin8 for i686-apple-darwin8, the rts didn't build because gpc produced bad .gpi files. The problem was solved by using the FSF-gcc compiler for the build !
Patches - for gpc-20051116 to build, you only need the "Tiger" patch (but only on Mac OS X 10.4) and of course the diffs that Waldek has posted on this list to fix reported problems.
--- gcc/config/darwin.h.orig 2005-05-18 13:56:37.000000000 -0400 +++ gcc/config/darwin.h 2005-05-18 13:57:48.000000000 -0400 @@ -275,7 +275,8 @@ /* Machine dependent libraries. */
#undef LIB_SPEC -#define LIB_SPEC "%{!static:-lSystem}" +#define LIB_SPEC "%{!static:-lSystemStubs -lSystem}" +
Regards,
Adriaan van Os