Skip to content

Commit

Permalink
adds the -thread option to enable building with ctypes 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
ivg committed Mar 8, 2021
1 parent 3193cb3 commit b14e26a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit b14e26a

Please sign in to comment.