swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Maybe a magic Mac bullet here[Fwd: gcc with GNU ObjC Runtime on MacOSX]


From: Paul E Johnson
Subject: Maybe a magic Mac bullet here[Fwd: gcc with GNU ObjC Runtime on MacOSX]
Date: Thu, 19 Sep 2002 14:35:14 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606

I don't use a Mac, but I've asked in the gcc list about it. I am pasting in here a message from Carl Eugen <address@hidden>, who appears to have solved the problem of building the gcc GNU objc-runtime.

If it works, please send him a thank you.

--------------------------------------------
Dear Paul:
I just read your mail in gcc-archive, and since I solved exactly your
problem some time ago, here is a solution:
Download the gcc - Sources, for Objective C, you need the core and ObjC,
of course. Don't use a version older than 3.1, because it won't compile on OSX.
Now edit gcc-3.x/gcc/config/darwin.h: There is a line
#define NEXT_OBJC_RUNTIME
Change it to
#undef NEXT_OBJC_RUNTIME
Now gcc compiles for the gnu-runtime as a default (you can still use
-fnext-runtime to use Apples runtime).
At the end of bootstrap, a gnu Objective C runtime is compiled and
installed, when you make install. But to use it, you have to change into
install-dir/lib/gcc-lib/powerpc-apple-whatever/3.x
(excuse the uncertainties, I can't access my Mac at the moment.)
There, just produce this link:
ln -s libobjc.a libobjc.dylib
Only because of this link, Apples linker will use the Objective C Library!

It workes perfectly for me. I use it to compile (and work
with) gnustep-library on a Mac, and the compiler is not better or worse
than on other systems I use.
If you still have any problems, please send me a mail for more precise
explanations. (Please mail anyway, if it worked)
Good luck, Carl Eugen



--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700
--- Begin Message --- Subject: gcc with GNU ObjC Runtime on MacOSX Date: Thu, 19 Sep 2002 20:25:21 +0200 (CEST)
Dear John!
I just read your mail in gcc-archive, and since I solved exactly your
problem some time ago, here is a solution:
Download the gcc - Sources, for Objective C, you need the core and ObjC,
of course. Don't use a version older than 3.1, because it won't compile on
OSX.
Now edit gcc-3.x/gcc/config/darwin.h: There is a line
#define NEXT_OBJC_RUNTIME
Change it to
#undef NEXT_OBJC_RUNTIME
Now gcc compiles for the gnu-runtime as a default (you can still use
-fnext-runtime to use Apples runtime).
At the end of bootstrap, a gnu Objective C runtime is compiled and
installed, when you make install. But to use it, you have to change into
install-dir/lib/gcc-lib/powerpc-apple-whatever/3.x
(excuse the uncertainties, I can't access my Mac at the moment.)
There, just produce this link:
ln -s libobjc.a libobjc.dylib
Only because of this link, Apples linker will use the Objective C Library!

It workes perfectly for me. I use it to compile (and work
with) gnustep-library on a Mac, and the compiler is not better or worse
than on other systems I use.
If you still have any problems, please send me a mail for more precise
explanations. (Please mail anyway, if it worked)
Good luck, Carl Eugen

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]