[Omake] building C binding library

Anastasia Gornostaeva ermine at ermine.pp.ru
Tue Sep 18 11:01:33 PDT 2007


On Mon, Sep 17, 2007 at 09:40:04PM -0700, Aleksey Nogin wrote:

> >> section
> >>    CFILES = mczlib_stub$(EXT_OBJ)
> >>    OCAML_LINK_FLAGS += -cclib -lz $(CFILES)
> >>    OCAMLLIBS = $(OCamlLibrary mlzlib, mlzlib)
> >>    $(OCAMLLIBS): $(CFILES)
> >>    .DEFAULT: $(OCAMLLIBS)

[zip]

s/OCAML_LINK_FLAGS/OCAML_LIBS_FLAGS/
Okay, thanks, I get it compiled.

But I cannot link another programs against such library: a linker cannot
find mlzlib_stub.a, if those programms are not in a directory where library is.

ermine


More information about the Omake mailing list