-
Notifications
You must be signed in to change notification settings - Fork 25
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
Topkg.clib tries to install .so
even if the compiler has no shared library support
#136
Comments
There's already logic to drop the Better would be to use the newer |
I think I'll just fallback to test for the existence of either |
I added something in dfdd319. Could you please do an |
Thanks for jumping on this so quickly.
I'm on OCaml 4.10. I tested the change you made and I still got the same error. I dug into the code and found that it works with the patch in #137. |
Excellent thanks for digging into the stuff. I merged a slightly amended version of the patch. Once you confirm everything is right on your side we can proceed to release. |
Thanks for your help with this! I can confirm mtime and ptime now build in this environment. Releasing is up to you, don't bother if it's time consuming. I can depend on the development version for now if you want to batch other fixes eventually before getting it out. |
The software is rather stable and in maintenance mode so that could be a long wait. Here you go ocaml/opam-repository#16915 . Thanks again for pointing at the right places, it helped in doing that swiftly. |
I stumbled upon this when trying to build
mtime
andptime
in a static musl-libc environment without shared library support. Error attached below.It seems like topkg is trying to generate a rule for building + installing the shared objects unconditionally (relevant snippet). It sounds like OCamlbuild might support checking this via
supports_shared_libraries
(based on this).The error is as follows:
The text was updated successfully, but these errors were encountered: