Sha256: 15bd16d25dbdea8669fc7e28d62cefec61a85676102fc43f2b3acc4d503dad92

Contents?: true

Size: 799 Bytes

Versions: 6

Compression:

Stored size: 799 Bytes

Contents

require 'mkmf'

dir_config("puma_http11")

if $mingw && RUBY_VERSION >= '2.4'
  append_cflags  '-fstack-protector-strong -D_FORTIFY_SOURCE=2'
  append_ldflags '-fstack-protector-strong -l:libssp.a'
  have_library 'ssp'
end

unless ENV["DISABLE_SSL"]
  dir_config("openssl")

  if %w'crypto libeay32'.find {|crypto| have_library(crypto, 'BIO_read')} and
      %w'ssl ssleay32'.find {|ssl| have_library(ssl, 'SSL_CTX_new')}

    have_header "openssl/bio.h"

    # below is  yes for 1.0.2 & later
    have_func  "DTLS_method"                           , "openssl/ssl.h"

    # below are yes for 1.1.0 & later
    have_func  "TLS_server_method"                     , "openssl/ssl.h"
    have_func  "SSL_CTX_set_min_proto_version(NULL, 0)", "openssl/ssl.h"
  end
end

create_makefile("puma/puma_http11")

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/puma-5.1.1/ext/puma_http11/extconf.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/puma-5.1.1/ext/puma_http11/extconf.rb
puma-5.1.1-java ext/puma_http11/extconf.rb
puma-5.1.1 ext/puma_http11/extconf.rb
puma-5.1.0-java ext/puma_http11/extconf.rb
puma-5.1.0 ext/puma_http11/extconf.rb