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

Compile with shared=False as default #112

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

eidekrist
Copy link
Member

Fixes #102.

I recently ran into one of the issues described in #102, where both Cosim and the FMU depend on a the same shared library but in different, incompatible versions.

Copy link
Member

@kyllingstad kyllingstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This led me to implement #113, because I wanted to check out the licences of our dependencies before approving the PR. And it turns out that openssl is GPL licensed, so we can't link it statically into our release bundles. xz_utils contains optional LGPL-licensed features, so we should probably be careful about that too. I suggest you set the shared option for both of these packages to True irrespective of Cosim's own setting.

Copy link
Member

@kyllingstad kyllingstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After your comment on #113, I looked more closely at this, and it looks like neither openssl nor xz_utils pose problems, licence-wise. The former is covered by the OpenSSL or Apache licences, depending on version, and the library component of the latter is in the public domain or covered by the 0BSD licence, also depending on version. Sorry for the confusion.

In other words: LGTM!

@eidekrist eidekrist merged commit 68fdcca into master Mar 6, 2024
8 checks passed
@eidekrist eidekrist deleted the feature/102-compile-with-shared-false branch March 6, 2024 08:09
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

Successfully merging this pull request may close these issues.

cosim-cli should be compiled with shared=False by default
2 participants