From 816ea74cc1574ccc823ca9185aaf12d8e6db3dc0 Mon Sep 17 00:00:00 2001 From: Matthieu Dubuget Date: Sun, 14 Apr 2019 09:41:28 +0200 Subject: [PATCH] Explications --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8debed9 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +See https://discuss.ocaml.org/t/problem-to-compile-a-dll-on-mingw/3661/2 + +for the short explanation. + +More in depth discussions: +- the patch that explain why the behaviour changed: + https://github.com/ocaml/ocaml/pull/1535 + +- a discussion which allow to understand the problem: + https://github.com/ocaml/ocaml/issues/6411 + + +I had two choices: +- either use `eval $(ocaml-env cygwin)` +- or add a `-link -static-libgcc` at link time + +The first solution works "for me": the PATH environment variable is modified on +my computer, and things are working fine. But since my goal is to distribute the +DLL to others, who do not necessarily have cygwin installed, I chose the second +solution. + +# Branches +- master : Do not work +- solve_linking_problem : Solution \ No newline at end of file