Skip to content

Commit

Permalink
Windows update extconf.rb (#2069)
Browse files Browse the repository at this point in the history
for use with ssp and varied Ruby/MSYS2 combinations
  • Loading branch information
MSP-Greg authored and nateberkopec committed Nov 9, 2019
1 parent d20242b commit 5fef2b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions History.md
Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions ext/puma_http11/extconf.rb
@@ -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

Expand Down

0 comments on commit 5fef2b7

Please sign in to comment.