On Feb 15, 2000, Martin Proulx <[EMAIL PROTECTED]> wrote:
> I know the support isn't finished, but libtool does work fine with c++
> on my linux box, and it might be partly because on that platform, the
> compiler is used to link.
Yup, g++ with GNU ld works quite well, at least on GNU/Linux and
Solaris. But when you put other compilers or linkers into the
picture, it doesn't get beautiful.
> I believe that if libtool would use g++ to link c++ objects, its would
> have a lot more chances of working correctly than by directly using the
> native linkers.
That's precisely what the branch does. Please give it a try.
> My point was simply that maybe if the GNU compilers on solaris are now
> able to do things correctly
Not always. When libstdc++ is not shared and you try to create a
shared library with g++, it fails. The multi-language libtool works
around the failure.
> that maybe libtool should trust the compiler and use it instead of
> directly using the native compiler because as I have said, using g++
> to link c++ shared libs works correctly.
I wish it were that simple.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaranį
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me