From 153dbd35270eafc984415369f4c05a47f5d64283 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 3 Feb 2022 13:18:00 -0600 Subject: Add -thread link for ctypes-foreign after upgrade to ctypes >= 0.18.0 Change discussed here: https://github.com/ocamllabs/ocaml-ctypes/pull/651 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index af80bd8..810ccd6 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ $(BUILDDIR)/libvyosconfig$(EXTDLL): $(CAML_INIT) $(LIBFILES) ocamlfind opt -o $@ -linkpkg -runtime-variant _pic -verbose -ccopt -dynamiclib -package $(PACKAGES) $^ else $(BUILDDIR)/libvyosconfig$(EXTDLL): $(CAML_INIT) $(LIBFILES) - ocamlfind opt -o $@ -linkpkg -output-obj -runtime-variant _pic -verbose -package $(PACKAGES) -ccopt "-Wl,-soname,libvyosconfig.so.0" $^ + ocamlfind opt -o $@ -linkpkg -output-obj -runtime-variant _pic -verbose -thread -package $(PACKAGES) -ccopt "-Wl,-soname,libvyosconfig.so.0" $^ endif stubs: $(GENERATED) @@ -64,7 +64,7 @@ $(BUILDDIR)/%.cmx: %.ml ocamlfind opt -c -o $@ -I $(BUILDDIR)/generated -I $(BUILDDIR)/lib -package $(PACKAGES) $< $(GENERATOR): $(GENERATOR_FILES) - ocamlfind opt -o $@ -I $(BUILDDIR)/lib -linkpkg -package $(PACKAGES) $^ + ocamlfind opt -o $@ -I $(BUILDDIR)/lib -linkpkg -thread -package $(PACKAGES) $^ clean: rm -rf $(BUILDDIR) -- cgit v1.2.3