Sha256: 38a6bbd679cb4a8bb201cdff6aa2ae75be4f88101fa6b0ec4cecefe790921ac2

Contents?: true

Size: 1.26 KB

Versions: 15

Compression:

Stored size: 1.26 KB

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"

    have_func  "X509_STORE_up_ref"
    have_func("SSL_CTX_set_ecdh_auto(NULL, 0)", "openssl/ssl.h")
  end
end

if ENV["MAKE_WARNINGS_INTO_ERRORS"]
  # Make all warnings into errors
  # Except `implicit-fallthrough` since most failures comes from ragel state machine generated code
  if respond_to? :append_cflags
    append_cflags config_string 'WERRORFLAG'
    append_cflags '-Wno-implicit-fallthrough'
  else
    $CFLAGS += ' ' << (config_string 'WERRORFLAG') << ' -Wno-implicit-fallthrough'
  end
end

create_makefile("puma/puma_http11")

Version data entries

15 entries across 14 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.2.1/ext/puma_http11/extconf.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/puma-5.2.2/ext/puma_http11/extconf.rb
puma-5.3.2-java ext/puma_http11/extconf.rb
puma-5.3.2 ext/puma_http11/extconf.rb
puma-5.3.1-java ext/puma_http11/extconf.rb
puma-5.3.1 ext/puma_http11/extconf.rb
puma-5.3.0-java ext/puma_http11/extconf.rb
puma-5.3.0 ext/puma_http11/extconf.rb
puma-5.2.2-java ext/puma_http11/extconf.rb
puma-5.2.2 ext/puma_http11/extconf.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/puma-5.2.1/ext/puma_http11/extconf.rb
puma-5.2.1-java ext/puma_http11/extconf.rb
puma-5.2.1 ext/puma_http11/extconf.rb
puma-5.2.0-java ext/puma_http11/extconf.rb
puma-5.2.0 ext/puma_http11/extconf.rb