Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

natdynlink (and ocamlnat) should be disabled with --disable-shared #10695

Closed
dra27 opened this issue Oct 12, 2021 · 1 comment
Closed

natdynlink (and ocamlnat) should be disabled with --disable-shared #10695

dra27 opened this issue Oct 12, 2021 · 1 comment
Assignees
Labels

Comments

@dra27
Copy link
Member

dra27 commented Oct 12, 2021

On platforms which support it, dynlink.cmxa is still built even when OCaml is configured with --disable-shared. This doesn't cause build issues, but given that it fundamentally doesn't work we should disable dynlink.cmxa when configured with --disable-shared.

The same is not true for dynlink.cma, even for code which uses C stubs, because you could compile the bytecode on a system without shared library support and then run it on a system where ocamlrun does have shared library support.

Spotted while dealing with #10690; we'll see whether I get to this before the stale bot nags me.

@dra27 dra27 self-assigned this Oct 12, 2021
@github-actions
Copy link

This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant