Hi,
On Thu, 24 Aug 2000, Albert Chin-A-Young wrote:
> > > > Ok, thanks. However, this raises another problem.
> > > > CXXFLAGS="-Wc,-LANG:std" won't work as the configure tests to make
> > > > sure CC works will fail.
> > >
> > > You'd have to add this flag to LDFLAGS (since it's only to be used at
> > > link time; at compile-time, -LANG:std is supposed to work), and only
> > > just before outputting the Makefiles in configure.in.
> >
> > Ick. Would the best solution be an autoconf test, --with-sgi-std-c++,
> > that does all this? It would add -LANG:std to LDFLAGS at the correct
> > time and make sure libtool got -Wc,-LANG:std. Or, should we just
> > automatically test if the C++ compiler supports -LANG:std and do the
> > right thing? I kinda like this last solution better.
>
> I've thought about this some more and would prefer to see libtool
> understand -LANG:std. In practice, people are already patching their
I'm also right now undecided, what I want in KDE. For now I have changed
libtool to accept -LANG. Well, it's a hack, but that's the purpose of
libtool ;) OTOH I anyway have to write a configure check, if LANG:std is
supported (and make that the default), so I can also set CPPFLAGS and
LDFLAGS appropriately in that test. This might lead to problems, if
Makefile.am authors do strange things with those vars, and in the light,
that libtool should be a better frontend (and substitute) to the compiler
I'm not too unhappy with libtool accepting -LANG.
It's anyway all SGI's fault. I really would like to know who of them had
this wonderful idea of using a flag beginning with -L for other things
then lib-paths.
> autoconf. Ditto for libtool and IRIX C++. If C++ programs want libtool
> support, they must now add this new autoconf test to modify CXXFLAGS for
> libtool.
Or this test is included with libtools autoconf macros.
> If libtool understood -LANG:std, one less thing for the authors to
> deal with.
Yep, I also like this solution most, even if this means a very special
case in ltmain.
Ciao,
Michael.