-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[WINDOWS][BUILD] Fix for Cygwin using USE_BINARYBUILDER_LIBGIT2=0 #48793
[WINDOWS][BUILD] Fix for Cygwin using USE_BINARYBUILDER_LIBGIT2=0 #48793
Conversation
Perhaps this patch is simpler and more consistent: diff --git a/deps/libgit2.mk b/deps/libgit2.mk
index 30d94aeca7..3d9e265d37 100644
--- a/deps/libgit2.mk
+++ b/deps/libgit2.mk
@@ -26,6 +26,7 @@ LIBGIT2_OPTS += -G"MSYS Makefiles"
else
LIBGIT2_OPTS += -DBUILD_CLAR=OFF -DDLLTOOL=`which $(CROSS_COMPILE)dlltool`
LIBGIT2_OPTS += -DCMAKE_FIND_ROOT_PATH=/usr/$(XC_HOST) -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY
+LIBGIT2_OPTS += -Dssh2_RESOLVED=${build_shlibdir}/libssh2.dll
endif
endif |
I think the CMAKE people would be upset with it; because it likely violates their rules. Edit: And, it would do nothing to help under MSys2 MINGW64. Tim S. |
6abd05f
to
7e943aa
Compare
7e943aa
to
3e0ee0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This pathc fix:
When building
libgit2
, sometimeslibssh2
is not foundOriginally posted by
@inkydragon
in #45645 (comment)
Correct, it fixes the problem of libgit2 failing to find libssh2; it also prevents the finding of the wrong libssh2 under MSys2 MINGW64 and likely fixes that issues under Cygwin. If MSys2 has an system installation of libssh2 it finds it before the Julia built version. Tim S. |
3e0ee0c
to
e4a563a
Compare
Without change "fatal error: libssh2.h: No such file or directory" happens. It also tends to find the wrong libssh2 library as reported in the cmake cache file.
Tim S.
See also issue #45645
Build command