From 8db9129c4b0abad890c6f1a0d57db5998e68df45 Mon Sep 17 00:00:00 2001 From: Jan Midtgaard Date: Fri, 24 Sep 2021 00:18:36 +0200 Subject: [PATCH] Fix thread-issue starting with ctypes.0.18.0 - https://github.com/ocaml/opam-repository/pull/17614 --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 369b263..285b680 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ hanoi: ocamlbuild -use-ocamlfind -package qcheck,qcstm,ppx_deriving.show examples/hanoi.cma examples/hanoi.native putget: putgetstub.so - ocamlbuild -use-ocamlfind -package ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show examples/putget.native + ocamlbuild -use-ocamlfind -tag thread -package ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show examples/putget.native putgetstub.so: examples/putgetstub.c if [[ ! -d _build ]]; then mkdir _build; fi @@ -43,15 +43,15 @@ putgetstub.so: examples/putgetstub.c gcc -shared -o _build/examples/putgetstub.so -fPIC examples/putgetstub.c stdio: stdiostub.o - ocamlbuild -use-ocamlfind -package ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show -lflags -custom,examples/stdiostub.o examples/stdio.cma examples/stdio.top - ocamlbuild -use-ocamlfind -package ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show -lflags examples/stdiostub.o examples/stdio.native + ocamlbuild -use-ocamlfind -tag thread -package threads,ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show -lflags -custom,examples/stdiostub.o examples/stdio.cma examples/stdio.top + ocamlbuild -use-ocamlfind -tag thread -package threads,ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show -lflags examples/stdiostub.o examples/stdio.native stdiostub.o: examples/stdiostub.c ocamlbuild examples/stdiostub.o cq: cqstub.o - ocamlbuild -use-ocamlfind -package ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show -lflags -custom,examples/cqstub.o examples/cq.cma examples/cq.top - ocamlbuild -use-ocamlfind -package ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show -lflags examples/cqstub.o examples/cq.native + ocamlbuild -use-ocamlfind -tag thread -package threads,ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show -lflags -custom,examples/cqstub.o examples/cq.cma examples/cq.top + ocamlbuild -use-ocamlfind -tag thread -package threads,ctypes,ctypes.foreign,qcheck,qcstm,ppx_deriving.show -lflags examples/cqstub.o examples/cq.native cqstub.o: examples/cqstub.c ocamlbuild examples/cqstub.o