Replies: 7 comments
|
For native binaries, the |
|
and there are no circumstances whatsoever under which a .so is taken?
…On 16/07/2020, Jérémie Dimino ***@***.***> wrote:
For native binaries, the `.a` should get linked.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#3634 (comment)
|
|
. |
|
In order to investigate an issue we would need precise instruction to reproduce the problem; otherwise there is not much we can do, unfortunately. |
|
I did ask only for information around dune choices. this is useful as the .so can have all dependent libraries' paths in place and ocaml need not be aware of them (correction: LD_LIBRARY_PATH may need setting up), while while ocamlopt can take .so cmdline arguments I don't know a way to direct dune to use shared libs exclusively. |
|
trying to close issue.... |
|
Eventually it would be nice for Dune to support building executables using shared libraries. Including OCaml libraries as well, there is no need to limit ourselves to C libraries. Though that's a fair amount of work, especially if we include teaching Dune how to run such binaries. |
Uh oh!
There was an error while loading. Please reload this page.
I have a (foreign_archive .. ) for which there are .so and .a archives.
when an .exe is built ldd showed it to be dynamically linked against the .so.
some time later after meddling with dune stanzas BUT returning to config for above,
the .exe built is always resolved and so appears to have incorporated the .a archive.
and now I cannot get the dynamic linking behaviour back.
I am 99.9% certain I am seeing different behaviour from identical configuration!
perhaps dune is holding on to some state?
so rather than hand off a bug report for something I cannot reproduce may I ask what decisions
dune makes around whether to use .a's or .so's ?
All reactions