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

Windows update extconf.rb (#2069)

for use with ssp and varied Ruby/MSYS2 combinations
This commit is contained in:
MSP-Greg 2019-11-09 00:16:34 -06:00 committed by Nate Berkopec
parent d20242b2ec
commit 5fef2b715f
2 changed files with 5 additions and 3 deletions

View file

@ -5,6 +5,7 @@
* Bugfixes
* Your bugfix goes here (#Github Number)
* Windows update extconf.rb for use with ssp and varied Ruby/MSYS2 combinations (#2069)
## 4.3.0 / 2019-11-07

View file

@ -1,9 +1,10 @@
require 'mkmf'
dir_config("puma_http11")
if RUBY_PLATFORM[/mingw32/]
append_cflags '-D_FORTIFY_SOURCE=2'
append_ldflags '-fstack-protector'
if $mingw
append_cflags '-fstack-protector-strong -D_FORTIFY_SOURCE=2'
append_ldflags '-fstack-protector-strong -l:libssp.a'
have_library 'ssp'
end