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

HiGHS does depend on additional libs #29

Closed
CCHiggins opened this issue Jun 21, 2023 · 2 comments
Closed

HiGHS does depend on additional libs #29

CCHiggins opened this issue Jun 21, 2023 · 2 comments

Comments

@CCHiggins
Copy link

Readme mentions that HiGHS solver does not depend on additional libs at runtime, which is not wholly true. The highs-sys crate mentions that the library depends on libstdc++ and libgomp at runtime. While most Linux distros include these libraries by default, mac needs to install libomp and lightweight container oriented Linux distros like alpine do not include the gcc tooling by default.

@lovasoa
Copy link
Collaborator

lovasoa commented Jun 21, 2023

You are right ! It would be nice if we could statically link them in https://github.com/rust-or/highs-sys/blob/master/build.rs

@CCHiggins
Copy link
Author

CCHiggins commented Jun 21, 2023

I think its possible but gcc is GPLv3 which as an infectious copyleft license, so anything statically linked against GPL libraries must also be released as GPL. It may be possible to static link against clang/LLVM versions which are apache? Edit: looking at the build file more mac is already using LLVM/Clang versions.

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

No branches or pull requests

2 participants