From e2df13cfca9ba10ae726d8ff6134a90c5dc4f82d Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Wed, 16 Mar 2022 09:20:58 +1100 Subject: [PATCH] fix: static linking of ssh2 --- shard.yml | 2 +- src/ssh2.cr | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shard.yml b/shard.yml index 1ec28a4..f3f0f8f 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: ssh2 -version: 1.5.2 +version: 1.5.3 crystal: ">= 0.36.1" development_dependencies: diff --git a/src/ssh2.cr b/src/ssh2.cr index a3bebb4..ef1a019 100644 --- a/src/ssh2.cr +++ b/src/ssh2.cr @@ -1,3 +1,8 @@ +# libssh2 requires the libs that these add to the crystal linker when compiled statically +# see discussion: https://forum.crystal-lang.org/t/cant-build-static-binary-with-libssh2/4458 +require "openssl" +require "compress/gzip" +require "compress/deflate" require "./lib_ssh2" module SSH2