aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/extconf.rb
diff options
context:
space:
mode:
authorMSP-Greg <MSP-Greg@users.noreply.github.com>2019-10-26 07:55:07 -0500
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-10-27 09:42:43 +1300
commit4bb32c1b259bd130038cde5a6be4936230099814 (patch)
tree7c857e1c64f3aed5453ea069205414bf4bdf04f1 /ext/openssl/extconf.rb
parent786e7293bcb781fba235d5f669f24592832b1387 (diff)
downloadruby-openssl-4bb32c1b259bd130038cde5a6be4936230099814.tar.gz
extconf.rb - update for new MSYS2, libssp
Diffstat (limited to 'ext/openssl/extconf.rb')
-rw-r--r--ext/openssl/extconf.rb6
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