Hi,
On Mon, 22 May 2000, Ossama Othman wrote:
> On Sun, May 21, 2000 at 07:53:39PM +0200, Stephan Kulow wrote:
> > Michael Matz and I plan to switch our libtool version to
> > the one in multi-language-branch in two days so it gets
> > some testing before we release KDE 2.0 with it.
>
> Great! KDE would be a great smoke test for the multi-language branch
> libtool.
It's smoking already ;) Even with problem reports ;)
On Wed, 24 May 2000, Ossama Othman wrote:
> I'll try to move the general g++ configurations outside of the
> platform-specific configurations soon.
Great. Note that it's all not only depending on the compiler, but also on
the actual linker used, so $with_gnu_ld should also be tested. E.g. just
today I had a report from someone using KDE on Solaris with gcc and GNU
ld. Currently that won't work, because on Solaris ltcf-cxx.sh thinks its
using the native linker. (for -export-symbols it tries to give -M bla.exp
to the linker).
I guess, the easiest solution would be, to structure ltcf-cxx.sh like:
if test $with_gcc = yes && test $with_gnu_ld = yes ; then
# do useful things, mostly independent from the OS
# note, that mostly (if $with_gnu_ld --> also $with_gcc)
else
if test $with_gcc = yes ; then
# do stuff where we at least can count on g++, while using the native
# linker
else
# do ugly stuff for each OS
fi
fi
That way, I think we can factorize out most similarities in behaviour.
(I'm not just whining ;) on the weekend I'll try to implement something
similar to above, the next BETA is not that far away ;)
Btw. just a small thing: in all 'case' statements testing for $CXX you
should use $compiler, as $CXX can have arguments. In fact it is set
already in the beginning, just not used. No diff, because it would be
larger than the description ;)
Ciao,
Michael.