Skip to content

Commit

Permalink
fix: static linking of ssh2
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Mar 15, 2022
1 parent a4a279a commit e2df13c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ssh2
version: 1.5.2
version: 1.5.3
crystal: ">= 0.36.1"

development_dependencies:
Expand Down
5 changes: 5 additions & 0 deletions src/ssh2.cr
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e2df13c

Please sign in to comment.