[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wfmath



Michael Koch wrote:
> Am Montag, 21. Oktober 2002 09:03 schrieb Thiemo Seufer:
> > Michael Koch wrote:
> > [snip]
> >
> > > The problem was that the auto*-tools dont link a libstdc++ lib in
> > > by default. I dont know why, my sponsor dont know too,
> > > debian-mentors didnt helped too. So I added "LDFLAGS=-lstdc++" to
> > > get it link during build time and to get a dependency on it
> > > automatically.
> >
> > 'info autoconf' warns about this and recommends the use of LIBS.
> >
> > > Now I wonder if I should remove this hack or extend this hack by
> > > integrating the "LDFLAGS += -lm" hack ? What is better ?
> > >
> > > If someone know a way to fix the linkage of the lib that would be
> > > the best way of course.
> >
> > See AC_CHECK_LIB in 'info autoconf'.
> 
> then I should use this ?
> 
> LIBS="-lstdc++"
> 
> and on mips/el:
> 
> LIBS += "-lm"

This might work, too.

What I meant was adding a line
AC_HAVE_LIBRARY(stdc++)
to the configure.in file.

But if the build system is what I found in CVS at purple.worldforge.org
I can't predict any of this will work, it looks horribly broken. It has
its own handling of WFMATH_CFLAGS and WFMATH_LIBS and relies on internal
autoconf variables which may have changed over the last versions.


Thiemo



Reply to: