<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>Hi Alain,</div><div><br class="webkit-block-placeholder"></div><div>Thanks for all this! I'll restrict my comments to the ocaml bindings…</div><div><br class="webkit-block-placeholder"></div><div>On 2008-01-03, at 12:35, Alain Frisch wrote:</div><div><br></div><div></div><blockquote type="cite"><div><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">The OCaml bindings needs some more work (I've haven't succeeded yet) to compile under Mingw:</span></div><div>- the statement CFLAGS+=... in bindings/ocaml/Makefile.ocaml is <span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">destroyed if we set CFLAGS in Makefile.config (this might be solved by using =? instead of = in Makefile.config);</span></div></blockquote><div><br class="webkit-block-placeholder"></div><div>Can you explain the cause of this behavior? <font class="Apple-style-span" face="Courier">CFLAGS +=</font> appears in Makefile.ocaml after <font class="Apple-style-span" face="Courier">include …/Makefile.config</font> to avoid precisely this problem.</div><br><blockquote type="cite"><div>- the variables OCAMLC, OCAMLOPT, OCAMLDEP in Makefile.config are <span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">Windows paths (they should be Cygwin paths);</span></div></blockquote><div><br class="webkit-block-placeholder"></div><div>I don't have a Cygwin environment to test in. Please apply the attached configure.patch to see if it's suitable (autoconf.patch is the source). If it works well, I'll commit it.</div><br><blockquote type="cite"><div>- there should be quotes when adding to CFLAGS in Makefile.ocaml:</div><div>CFLAGS += -I"$(shell $(OCAMLC) -where)";</div></blockquote><div><br class="webkit-block-placeholder"></div><div>Done.</div><br><blockquote type="cite"><div>- use $(SYSPATH) as below for all the ocaml commands;</div></blockquote><div><br class="webkit-block-placeholder"></div><div>Looks like you set SYSPATH by hand? I'll hold off on this for now.</div><br><blockquote type="cite"><div>- replace .a with .lib in Makefile.ocaml;</div></blockquote><blockquote type="cite"><div>- adapt llvm-config to produce .lib suffixes for --libnames;</div></blockquote><div><br class="webkit-block-placeholder"></div><div>I guess we need a configure test?</div><div><br></div><div>— Gordon</div><br></div><div><br class="webkit-block-placeholder"></div><div>P.S. — <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-January/011992.html">http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-January/011992.html</a></div><div><br class="webkit-block-placeholder"></div><div><div></div></div></div></body></html>