-
Notifications
You must be signed in to change notification settings - Fork 24
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
Please add cmake options enabling/disabling static and shared libraries #100
Comments
Hi Yuri, Sorry about the late response. My thoughts:
As you can see, I'm afraid I don't understand the reason you want this. But there may be things I haven't thought about, so please elaborate why you want this. Best regards, Norvald |
The reason is for packaging. For example, on FreeBSD static libraries aren't allowed to be installed without a good reason. So I have to patch cmake to make this happen. FYI: Static libraries are generally not useful, and are rather harmful. They are beneficial only in these specific situations:
Downsides:
This is why it is better to limit static libs. FreeBSD does this as a policy. This is the reason I asked. Thanks! |
I've only packaged software for Linux distros, never for FreeBSD. All Linux distro package formats I've worked with have a way of specifying which files to package and which to not. Doesn't FreeBSD packaging have a similar option? IMHO, that would be a better place to make this choice. |
For cmake projects, it installs what cmake installs. It is possible to add/delete files in a package. But it makes the port code unnecessarily more complex. |
Some people only want shared, some people only want static, and some want both.
The text was updated successfully, but these errors were encountered: