Bug#245510: OCamlMake: LIBS not included in ncl target final link
On Mon, Apr 26, 2004 at 12:33:44AM +0200, Ralf Treinen wrote:
> On Fri, Apr 23, 2004 at 10:25:31AM -0500, John Goerzen wrote:
> > Package: ocaml-tools
> > Version: 2004.03.18-1
> > Severity: normal
> >
> > The LIBS variable is used for the bcl target... for instance:
> >
> > LIBS=str
> >
> > When building a library with bcl, it will include str.cma. However, for
> > building a library with ncl, str.cmxa is not included (nor is str.cma
> > for that matter).
>
> I cannot reproduce this one (with OCamlMake 6.6.0, which is in the
> ocaml-tools package vesion 2004.04.25). On a toy example I get
>
> % make ncl
> make[1]: Entering directory
> `/home/rt/debian/pkg-ocaml-maint/packages/ocaml-tools/trunk/bugs'
> ocamlopt -c -I /usr/include/ocaml/3.07 -I /usr/include/ocaml/3.07 foo.ml
> ocamlopt -a -I /usr/include/ocaml/3.07 -I /usr/include/ocaml/3.07
> \
> -o foo.cmxa foo.cmx
You have just successfully reproduced it. If you ran make bcl, you'd
see str.cma listed there. This matters if -linkall is being given; the
dependencies of a library would not be automatically linked if they're
not given originally.
-- John
Reply to: