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

Link with correct variant of websockets library #2751

Closed
wants to merge 1 commit into from
Closed

Link with correct variant of websockets library #2751

wants to merge 1 commit into from

Conversation

diizzyy
Copy link

@diizzyy diizzyy commented Feb 13, 2023

Upstream refers to static library as websockets and shared as websockets_shared

Reference:
https://github.com/warmcat/libwebsockets/blob/main/lib/CMakeLists.txt#L279

Upstream refers to static library as websockets and shared as websockets_shared

Reference:
https://github.com/warmcat/libwebsockets/blob/main/lib/CMakeLists.txt#L279
@diizzyy
Copy link
Author

diizzyy commented Feb 13, 2023

Feel free to commit this just fix the bug, I dont need to be credited

@ralight
Copy link
Contributor

ralight commented Mar 27, 2023

Thank you for the suggestion. LWS used to be licensed under LGPL with a static linking exception. In order to satisfy licensing requirements when directly distributing mosquitto including websockets support, the library was static linked. This situation existed only really existed on Windows, and on Windows the resulting static library is renamed as libwebsockets_static, hence why this exists as it does.

As LWS decided to relicense to MIT so this problem doesn't exactly exist any more, but anyway I think the option can stay as it is for 2.0.x.

@ralight ralight closed this Mar 27, 2023
LocutusOfBorg pushed a commit to LocutusOfBorg/mosquitto that referenced this pull request Sep 13, 2023
LocutusOfBorg pushed a commit to LocutusOfBorg/mosquitto that referenced this pull request Sep 26, 2023
LocutusOfBorg pushed a commit to LocutusOfBorg/mosquitto that referenced this pull request Sep 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants