Skip to content

Commit 4bb32c1

Browse files
MSP-Gregioquatix
authored andcommitted
extconf.rb - update for new MSYS2, libssp
1 parent 786e729 commit 4bb32c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/openssl/extconf.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
Logging::message "=== Checking for required stuff... ===\n"
4141
result = pkg_config("openssl") && have_header("openssl/ssl.h")
4242

43+
if $mingw
44+
append_cflags '-D_FORTIFY_SOURCE=2'
45+
append_ldflags '-fstack-protector'
46+
have_library 'ssp'
47+
end
48+
4349
def find_openssl_library
4450
if $mswin || $mingw
4551
# required for static OpenSSL libraries

0 commit comments

Comments
 (0)