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

Build static binaries for releases #152

Open
Gbury opened this issue May 11, 2023 · 2 comments
Open

Build static binaries for releases #152

Gbury opened this issue May 11, 2023 · 2 comments

Comments

@Gbury
Copy link
Owner

Gbury commented May 11, 2023

Binaries bundled in the releases should be statically linked for ease of use (particularly on systems with odler libc, such as starexec).

Adding -cclib -static seems sufficient in some cases, but it might also be worth it to follow tis blog post detailing how to build ocaml static binaries in general : https://ocamlpro.com/blog/2021_09_02_generating_static_and_portable_executables_with_ocaml/

@bobot
Copy link
Contributor

bobot commented May 12, 2023

@Gbury
Copy link
Owner Author

Gbury commented Jul 13, 2023

I've tried the -cclib -static option, and it doesn't work because I don't have static versions of gmp and mpfr installed (additionally it seems to be quite a not-so-good idea to try and static link the glibc, and may lead to problems down the road). More generally, it seems that to get a robust solution, it's probably better to follow the instruction from the blogpost. I'll see when I have the time to try and setup that (in the meantime, if someone is motivated to work on this, that'd also be nice, :) ).

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

No branches or pull requests

2 participants