Skip to content

Commit

Permalink
Merge pull request #601 from krzcho/master
Browse files Browse the repository at this point in the history
fix for compilation with ssl on windows
  • Loading branch information
sodabrew committed Jul 27, 2015
2 parents c8de561 + c723288 commit 720dabc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ def append_library(libs, lib)
def manual_ssl_config
ssl_libs_heads_args = {
:unix => [%w[ssl crypto], %w[openssl/ssl.h openssl/err.h]],
:mswin => [%w[ssleay32 eay32], %w[openssl/ssl.h openssl/err.h]],
:mswin => [%w[ssleay32 libeay32], %w[openssl/ssl.h openssl/err.h]],
}

dc_flags = ['ssl']
dc_flags += ["#{ENV['OPENSSL']}/include", ENV['OPENSSL']] if /linux/ =~ RUBY_PLATFORM and ENV['OPENSSL']

libs, heads = case RUBY_PLATFORM
when /mswin/ ; ssl_libs_heads_args[:mswin]
else ssl_libs_heads_args[:unix]
when /mswin|mingw|bccwin/ ; ssl_libs_heads_args[:mswin]
else ssl_libs_heads_args[:unix]
end
dir_config(*dc_flags)
check_libs(libs) and check_heads(heads)
Expand Down

0 comments on commit 720dabc

Please sign in to comment.