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

Bug#504348: libcamlrun_shared: should be linked with -lm, -ldl, etc.

On Mon, Nov  3, 2008 at 01:12:05 +0100, Stéphane Glondu wrote:

> forwarded 504348 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504348
> thanks
> [NOTE: bug cloned, reopened and reassigned to ocaml]
> Julien Cristau wrote:
> > Why do we care?  The proper fix is easy enough, just add -lm to the
> > linker command line (libcamlrun_shared.so seems to also reference
> > symbols from ncurses for the terminfo stuff and from libdl, it might be
> > a good idea to link it against those too, or make sure they're not
> > actually needed).
> Granted. I guess adding $(BYTECCLIBS) (which is "-lm  -ldl -lcurses
> -lpthread" on my system) at the right place in camlrun_shared.dpatch
> should be enough.
libpthread isn't necessary as far as I can tell, so it'd be better to
leave it out if possible.

> Since that patch has been merged in upstream, I also notice them.
Thanks for doing this.


Reply to: