From b14e26a3813f47d2ddf19159ee9c41256a53fb57 Mon Sep 17 00:00:00 2001 From: ivg Date: Mon, 8 Mar 2021 13:46:11 -0500 Subject: [PATCH] adds the `-thread` option to enable building with ctypes 1.18 See also https://github.com/ocamllabs/ocaml-ctypes/pull/651 --- Makefile.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index c419e33..8d7e0b2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -50,13 +50,13 @@ sharedlib: $(BUILDDIR)/lib$(LIBRARY)$(EXTDLL) ifeq ($(OSTYPE),$(filter $(OSTYPE),Win32 Cygwin)) $(BUILDDIR)/lib$(LIBRARY)$(EXTDLL): $(CAML_INIT) $(LIBFILES) - $(OCAMLOPT) -o $@ -linkpkg -output-obj -verbose -package $(PACKAGES) $^ + $(OCAMLOPT) -o $@ -thread -linkpkg -output-obj -verbose -package $(PACKAGES) $^ else ifeq ($(SYSTEM),$(filter $(SYSTEM),macosx)) $(BUILDDIR)/lib$(LIBRARY)$(EXTDLL): $(CAML_INIT) $(LIBFILES) - $(OCAMLOPT) -o $@ -linkpkg -runtime-variant _pic -verbose -ccopt -dynamiclib -package $(PACKAGES) $^ + $(OCAMLOPT) -o $@ -thread -linkpkg -runtime-variant _pic -verbose -ccopt -dynamiclib -package $(PACKAGES) $^ else $(BUILDDIR)/lib$(LIBRARY)$(EXTDLL): $(CAML_INIT) $(LIBFILES) - $(OCAMLOPT) -o $@ -linkpkg -output-obj -runtime-variant _pic -verbose -package $(PACKAGES) $^ + $(OCAMLOPT) -o $@ -thread -linkpkg -output-obj -runtime-variant _pic -verbose -package $(PACKAGES) $^ endif stubs: $(GENERATED) @@ -75,7 +75,7 @@ $(BUILDDIR)/%.cmx: %.ml $(OCAMLOPT) -c -o $@ -I $(BUILDDIR)/generated -I $(BUILDDIR)/lib -package $(PACKAGES) $< $(GENERATOR): $(GENERATOR_FILES) - $(OCAMLOPT) -o $@ -linkpkg -package $(PACKAGES) $^ + $(OCAMLOPT) -o $@ -thread -linkpkg -package $(PACKAGES) $^ clean: rm -rf $(BUILDDIR)