Hi,
On Thu, Feb 24, 2000 at 01:08:45PM +0100, Stephan Kulow wrote:
> Thomas Tanner wrote:
> >
> > On 19-Feb-2000 Stephan Kulow wrote:
> > >> I'm working on a fix.
> > >> My first experimental patch (an ugly hack :( is attached.
> > >> It's doesn't support the -la -lb -la case yet.
> > > It doesn't work with static linking.
> > > actually libkdecore.la links to libDCOP.la and some other libs.
> > > libtool --mode=link g++ -o test test.o libkdecore.la results in
> > > g++ -o test test.o libDCOP.a kdecore.a
> > > (basicly - I removed 90% of the output :)
> >
> > OK. I've just commited my latest patch to CVS.
> > It does now also support interdependent libraries.
> > Please test it.
>
> My first tests worked fine. It rocks. Now I wait for Ossama to
> update the other branch, so I can test it with my real setup :)
I updated the multi-language branch with all of Thomas' new ILD
updates. Give it a shot.
I did just realize that the compiler options passed to libtool during
the link phase are being stripped from the link command. For example:
bin/sh ../libtool --tag=CXX --mode=link c++ -W -Wall -Wpointer-arith
-fno-implicit-templates -g -O2 -pthread -pipe -O3 -o libACE.la -rpath /usr/local/lib
-version-info 5:14:0 Basic_Types.lo OS.lo ... -lrt -ldl
becomes:
c++ -shared -nostdlib /usr/lib/crti.o
/usr/lib/gcc-lib/i386-linux/2.95.2/crtbeginS.o .libs/Basic_Types.o .libs/OS.o ...
-L/usr/lib/gcc-lib/i386-linux/2.95.2 -lrt -ldl -lstdc++ -lm -lc -lgcc -lc
/usr/lib/gcc-lib/i386-linux/2.95.2/crtendS.o /usr/lib/crtn.o -Wl,-soname
-Wl,libACE.so.5 -o .libs/libACE.so.5.0.14
This is clearly busted. I'm working on this problem. Bob, I wonder
if this is the cause of your C++ exception problems. Are you passing
some sort of exception flag at link time?
-Ossama
--
Ossama Othman <[EMAIL PROTECTED]>
Distributed Object Computing Laboratory, Univ. of California at Irvine
1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8