]> err.no Git - sope/blob - libFoundation/README.osx
Some compilation fixups.
[sope] / libFoundation / README.osx
1 GNU Objective-C/libFoundation on MacOSX README
2 ==============================================
3
4 Intro
5 =====
6
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.
11
12 GNU Runtime
13 ===========
14
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.
17
18 GNUstep Makefiles
19 =================
20
21     I only tried with GNUstep Makefiles (libFoundation theoretically
22     can compile without them ...)
23
24 Configuration
25 =============
26
27     Before invoking configure you need to set the following environment
28     variables:
29
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"
36     
37     at least this worked for me ;-)
38
39     Then you can call configure:
40     
41       ./configure --with-gnustep
42
43     Ensure that configure recognized the GNU runtime:
44
45       checking for the Objective-C runtime... GNU
46
47     REALLY! ;-) Also ensure that these ObjC things are found:
48     
49       checking for objc_mutex_allocate... yes
50       checking for objc_malloc... yes
51
52     Otherwise something is still wrong ...
53
54 TO BE COMPLETED
55   - currently I get a lot of weird gcc 3.2 debugging output
56     during compilation ..., so didn't get it working yet
57
58 ---
59 2002-08-16
60 Helge Hess (hh@skyrix.com)
61 SKYRIX Software AG
62
63 ! Local variables:
64 ! mode: indented-text
65 ! End: