Skip to content

Commit

Permalink
Link OpenSSL-1.1.0 libs static into Windows binary gems, as it was wi…
Browse files Browse the repository at this point in the history
…th OpenSSL-1.0.2
  • Loading branch information
larskanis committed Oct 23, 2017
1 parent 024b0c6 commit 3bee36c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Rakefile.cross
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,14 @@ class CrossLibrary < OpenStruct
end

desc "compile static #{libssl}"
file libssl => :compile_static_openssl
file libssl => :compile_static_openssl do |t|
rm t.name.gsub(/\.a$/, ".dll.a")
end

desc "compile static #{libcrypto}"
file libcrypto => :compile_static_openssl
file libcrypto => :compile_static_openssl do |t|
rm t.name.gsub(/\.a$/, ".dll.a")
end



Expand Down Expand Up @@ -201,7 +205,7 @@ class CrossLibrary < OpenStruct
cmd << "CFLAGS=-L#{static_openssl_builddir}"
cmd << "LDFLAGS=-L#{static_openssl_builddir}"
cmd << "LDFLAGS_SL=-L#{static_openssl_builddir}"
cmd << "LIBS=-lwsock32 -lgdi32"
cmd << "LIBS=-lwsock32 -lgdi32 -lws2_32"
cmd << "CPPFLAGS=-I#{static_openssl_builddir}/include"

run( *cmd )
Expand Down

0 comments on commit 3bee36c

Please sign in to comment.