[Bug libobjc/11572] [3.3/3.4/3.5 regression]: GNU libobjc no longer compiled on Darwin
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 19 14:47:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-19 14:47 -------
Here is my stab at the explanation why the patch to undo the change is not the right one.
On Darwin there is an already a libobjc.dyld so now with this GNU runtime in place you
cannot use the one that comes with Darwin and that would be a regression in itself as
before 3.4 because the GNU runtime was built as a static library (most likely still is if we
revert the patch without some more fixes). The runtime would not be found as Darwin's
linker looks for .dyld (shared libraries) first and if it finds one in the search path it stops
(some can consider this a bug but others consider this a feature, I have no view on this)
so it would not find the GNU runtime unless you (the user and I want to say not the
Makefile) make a symbolic link to libobjc.dyld. The include files is a different story as
you now (with the patch reverted) two different include files named the same thing and
sometimes one gets picked up and you do not want that one to be picked.
But anyways the right fix is to have -fgnu-runtime to link against the correct libobjc and
make sure that it includes the right headers which is semi what the proof of concept patch
does but only for the include files. I will try to get the right fix in for 3.4.1 but it might be
hard as I am also trying to clean up the configure stuff and maybe start using libtool and
automake also for 3.5.0 so the patch which fixes it for 3.5.0 is going to be different than
the patch to fix 3.4.x unless the general cleanup is accepted for 3.4.x also.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-11-19 07:04:21 |2004-03-19 14:47:42
date| |
Target Milestone|3.5.0 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11572
More information about the Gcc-bugs
mailing list