Repository navigation
cmake: use only socket libs when checking non-blocking sockets - #816
Merged
Merged
Conversation
Based on patch by Christian Beier. Fixes libssh2#694 Closes libssh2#712
Member
Author
|
/cc @bk138 Merging this for now. Feel free to comment / reopen if it didn't fix the original issue. |
|
Works for me @vszakats, thanks! |
bk138
added a commit
to bk138/multivnc
that referenced
this pull request
Mar 8, 2023
Finally libssh2/libssh2#816 fixed the Android issue, no need for our own branch anymore.
bk138
added a commit
to bk138/multivnc
that referenced
this pull request
Aug 25, 2023
Finally libssh2/libssh2#816 fixed the Android issue, no need for our own branch anymore.
bk138
added a commit
to bk138/multivnc
that referenced
this pull request
Aug 25, 2023
Finally libssh2/libssh2#816 fixed the Android issue, no need for our own branch anymore.
agreppin
pushed a commit
to agreppin/libssh2
that referenced
this pull request
Jul 14, 2024
…libssh2#816) Based on patch by Christian Beier. Fixes libssh2#694 Closes libssh2#712
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on patch by Christian Beier:
When building libssh2 and the libraries it depends on from source
using a single CMakeLists.txt (as is common on Android), libssh2's
CMake has to be hinted at where to find other libs by setting
variables like OPENSSL_SSL_LIBRARY and so on.
Now, as under Android there's one single CMakeLists.txt that has to
add_subdirectory()all other CMakeLists.txt, there's only oneconfigure phase and one build phase. That means when libssh2 is
configured, the libs it is configured to use are actually not built
yet.
In this case it's a problem to use the libs in LIBRARIES when checking
for nonblocking sockets as some libs in there are not yet built,
failing the test and ending up with HAVE_DISABLED_NONBLOCKING in
libssh2_config.h.
Fix this by using a separate, clean library list for the nonblocking
socket checks.
Fixes #694
Closes #712