summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-02-03 13:18:00 -0600
committerJohn Estabrook <jestabro@vyos.io>2022-02-03 13:18:00 -0600
commit153dbd35270eafc984415369f4c05a47f5d64283 (patch)
tree7bb1d536b044a73d2431da52a3e7bf3c188eea87
parent0d8e72a500c2d5bad1138533df40749c2ebd740b (diff)
downloadlibvyosconfig-153dbd35270eafc984415369f4c05a47f5d64283.tar.gz
libvyosconfig-153dbd35270eafc984415369f4c05a47f5d64283.zip
Add -thread link for ctypes-foreign after upgrade to ctypes >= 0.18.0
Change discussed here: https://github.com/ocamllabs/ocaml-ctypes/pull/651
-rw-r--r--Makefile4
1 files 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)