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

Static option to Cmake #40

Open
jacobsvante opened this issue Apr 23, 2024 · 2 comments
Open

Static option to Cmake #40

jacobsvante opened this issue Apr 23, 2024 · 2 comments

Comments

@jacobsvante
Copy link

I'm working on building completely static versions of soplex and scip. But currently I have had to change the cmake file a bit.

Perhaps there should be an option for static/shared like there is for scip?

@leoneifler
Copy link
Contributor

Can you possibly elaborate on what you wish to achieve with this? You set the shared C library to static and remove it from the install targets?

@jacobsvante
Copy link
Author

jacobsvante commented Apr 23, 2024

Hi @leoneifler,

I'm using a musl-cross-make made GCC compiler that doesn't support dynamic loading. For this reason the soplex cmake build fails.

What I want to achieve is a fully static version of libscip.a to be specific. See this file for my progress: https://github.com/jacobsvante/scipoptsuite-deploy/blob/docker-building/Dockerfile.musl-cross

Update: I see now that I forgot to reply to you regarding the removal of install targets - this was not needed for make install to succeed with my static-only GCC. So now that's been reverted as you can see in the cmake file.

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