1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Merge pull request #553 from lowjoel/master

Instead of hardcoding dependencies, detect and use what is found
This commit is contained in:
Evan Phoenix 2014-10-16 09:07:03 -07:00
commit 2d342dc38c

View file

@ -2,7 +2,8 @@ require 'mkmf'
dir_config("puma_http11")
$defs.push "-Wno-deprecated-declarations"
$libs += " -lssl -lcrypto "
if %w'ssl ssleay32'.find {|ssl| have_library(ssl, 'SSL_CTX_new')} and
%w'crypto libeay32'.find {|crypto| have_library(crypto, 'BIO_read')}
create_makefile("puma/puma_http11")
create_makefile("puma/puma_http11")
end