-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Include prims.o in libcamlrun_shared.so #13132
Conversation
Yes will look into it, sorry for the delay.
|
@yallop I am wondering why you have chosen to add To rephrase, are you sure this file needs to be added only to this target |
Sorry for the slowness here, but I think this may need an additional .so - the purpose of that library is as alternative to I wonder if the better fix is to introduce libcamlrun.so with prims.o included and leave libcamlrun_shared.so as-is? |
Thanks a lot for your insight here David!
For sure the suggedted approach has the benefit of not breaking / touching anything existing!
|
Thank you for the analysis, @shindere and @dra27! While it would be useful to me to have a shared library that I could use directly, it's not clear that the effort of building a new |
Are additional libraries (e.g. Unix) also dynamically loaded? The linking "model" (it's a slightly grand word for it!) with those .a and .so basically ignores dynamic loading of C, so if what you're doing would otherwise never involve having to relink .so files, I can certainly see a gap in the distribution for providing an actual "here is the basic OCaml runtime as a self-contained DLL" |
I don't have a need for that at the moment; I only need to load the compiler code itself. |
I'd like to use
libcamlrun_shared.so
from other languages, but it has an undefined symbolcaml_names_of_builtin_cprim
:This PR includes
prims.o
in the shared object so that the symbol is no longer undefined: