Static linking for OpenBSD#6705
Conversation
Co-authored-by: bin <bin@sleepy.rs>
|
Thanks! I'll just need up a couple of hours to test the second commit which makes the release binary static on OpenBSD, but in the meantime Here's a before/after picture (after strip, aka. Before: After: I've added a line to the changelog, renamed the commit message and made you co-author of the follow-up commit. Does that look alright to you? |
|
Looks good to me, thanks! |
|
I can confirm, the release script now outputs a static OpenBSD binary. Thanks a lot! |
|
I saw this PR due to release notes about opam-2.5.0~alpha1, so it is a somehow late comment. Just to note that it will not work on all architectures supported by OpenBSD, but only on archs using llvm. We still have architectures using gcc (and so stdc++ instead of c++ and c++abi libraries). But it is a good thing to have it. Thanks. |
Building with
./configure --enable-static --with-vendored-depson an OpenBSD 7.7 system results in a statically linkedopambinary. Brief testing of the binary shows no problems, although I've admittedly not strenuously tested it, nor have I tried building with non-vendored dependencies.Resolves #6241.