Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] Static linking with Mingw and dune
@ 2024-12-01 17:02 Andreas Rossberg
  2024-12-01 17:27 ` Kate Deplaix
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Rossberg @ 2024-12-01 17:02 UTC (permalink / raw)
  To: caml-list

I’m banging my head against a very basic problem, namely creating a simple standalone executable on Windows with OCaml 5.2. So here are my, possibly stupid, questions:

- With OCaml 5 on Mingw64, how can I statically link libwinpthreads into an executable (using dune)?

- Some answers I found from a couple of years ago suggested using `-static`, but dune is (nowadays?) running through flexdll for linking, which doesn’t understand that. Is there a substitute?

- Some other answers/discussions mentioned the new `-l:` option being preferable, but I couldn’t find a working example, and all my feeble attempts to use it with dune were unsuccessful.

- What exactly is the difference between dune's `link_flags` and `ocamlopt_flags`, and why do some online answers use the latter for setting linking-related options?

Any help is appreciated.

Thanks,
/Andreas


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <EEEA5F26-2982-429E-A4B8-05E3776ED532@mpi-sws.org>]

end of thread, other threads:[~2024-12-13 14:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-01 17:02 [Caml-list] Static linking with Mingw and dune Andreas Rossberg
2024-12-01 17:27 ` Kate Deplaix
2024-12-02  8:25   ` Antonin Décimo
2024-12-12  7:44     ` Andreas Rossberg
2024-12-12 17:31       ` Xavier Leroy
     [not found] <EEEA5F26-2982-429E-A4B8-05E3776ED532@mpi-sws.org>
2024-12-13 14:42 ` Andreas Rossberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox