1 GNU Objective-C/libFoundation on MacOSX README
2 ==============================================
7 It doesn't work out of the box to compile libFoundation on
8 Darwin or MacOSX, primarily because the default compiler
9 produces binaries for the Apple ObjC runtime which libFoundation
10 doesn't seem to support anymore.
15 To get a working GNU runtime, you should first fetch & compile
16 GCC 3.2, this worked out-of-the-box in OSX 10.1.5.
21 I only tried with GNUstep Makefiles (libFoundation theoretically
22 can compile without them ...)
27 Before invoking configure you need to set the following environment
30 export CFLAGS="-traditional-cpp -fgnu-runtime"
31 export OBJC_RUNTIME_FLAG="-fgnu-runtime"
32 export LDFLAGS="-L/usr/local/gcc32/lib/"
33 export CC="/usr/local/gcc32/bin/gcc"
34 export OBJC_LIBS="/usr/local/gcc32/lib/libobjc.a"
35 export LIBS="/usr/local/gcc32/lib/libobjc.a"
37 at least this worked for me ;-)
39 Then you can call configure:
41 ./configure --with-gnustep
43 Ensure that configure recognized the GNU runtime:
45 checking for the Objective-C runtime... GNU
47 REALLY! ;-) Also ensure that these ObjC things are found:
49 checking for objc_mutex_allocate... yes
50 checking for objc_malloc... yes
52 Otherwise something is still wrong ...
55 - currently I get a lot of weird gcc 3.2 debugging output
56 during compilation ..., so didn't get it working yet
60 Helge Hess (hh@skyrix.com)