diff options
author | MSP-Greg <MSP-Greg@users.noreply.github.com> | 2019-10-26 07:55:07 -0500 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-10-27 09:42:43 +1300 |
commit | 4bb32c1b259bd130038cde5a6be4936230099814 (patch) | |
tree | 7c857e1c64f3aed5453ea069205414bf4bdf04f1 /ext/openssl/extconf.rb | |
parent | 786e7293bcb781fba235d5f669f24592832b1387 (diff) | |
download | ruby-openssl-4bb32c1b259bd130038cde5a6be4936230099814.tar.gz |
extconf.rb - update for new MSYS2, libssp
Diffstat (limited to 'ext/openssl/extconf.rb')
-rw-r--r-- | ext/openssl/extconf.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index b63fe28f..fa07dea8 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -40,6 +40,12 @@ end Logging::message "=== Checking for required stuff... ===\n" result = pkg_config("openssl") && have_header("openssl/ssl.h") +if $mingw + append_cflags '-D_FORTIFY_SOURCE=2' + append_ldflags '-fstack-protector' + have_library 'ssp' +end + def find_openssl_library if $mswin || $mingw # required for static OpenSSL libraries |