Skip to content

Commit

Permalink
extconf.rb - fix for new gcc on MingW (puma#2044)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg authored and nateberkopec committed Oct 20, 2019
1 parent 0c3dbe1 commit 9d787cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/puma_http11/extconf.rb
@@ -1,6 +1,11 @@
require 'mkmf'

dir_config("puma_http11")
if RUBY_PLATFORM[/mingw32/]
append_cflags '-D_FORTIFY_SOURCE=2'
append_ldflags '-fstack-protector'
have_library 'ssp'
end

unless ENV["DISABLE_SSL"]
dir_config("openssl")
Expand Down

0 comments on commit 9d787cc

Please sign in to comment.