From fb4c3eeb131bb13f11355ae682e37ace10ccdd95 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Mon, 7 Sep 2020 21:11:45 -0500 Subject: [PATCH] Update extconf.rb --- ext/puma_http11/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/puma_http11/extconf.rb b/ext/puma_http11/extconf.rb index a0edd839ec..feb812d8a6 100644 --- a/ext/puma_http11/extconf.rb +++ b/ext/puma_http11/extconf.rb @@ -1,7 +1,7 @@ require 'mkmf' dir_config("puma_http11") -if RUBY_PLATFORM[/mingw32/] +if $mingw && RUBY_VERSION >= '2.4' append_cflags '-D_FORTIFY_SOURCE=2' append_ldflags '-fstack-protector' have_library 'ssp'