aboutsummaryrefslogtreecommitdiffstats
path: root/extconf.rb
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-01-04 11:12:22 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-01-04 11:12:22 +0000
commit30c7790a512172b5254775fbad8f601d5638c1e6 (patch)
tree39a0ceb2db8fcd07e8b82bc107e5cc2a05df9d24 /extconf.rb
parent99d5a24aa57c9eb4ac792a36e0947dc5df84fe8c (diff)
downloadruby-openssl-history-30c7790a512172b5254775fbad8f601d5638c1e6.tar.gz
* Further checking (Check_SafeStr, memory leaks)
Diffstat (limited to 'extconf.rb')
-rw-r--r--extconf.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/extconf.rb b/extconf.rb
index fe9c414..277632f 100644
--- a/extconf.rb
+++ b/extconf.rb
@@ -23,6 +23,11 @@ dir_config("openssl")
have_func("strncasecmp", "string.h")
have_func("strptime", "time.h")
+if with_config("debug") or enable_config("debug") # '--enable-debug' or '--with-debug=yes'
+ $defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
+ $CPPFLAGS += " " + "-Wall" unless $CPPFLAGS.split.include? "-Wall"
+end
+
if have_header("openssl/ssl.h")
if have_library(CRYPTOLIB, nil) and have_library(SSLLIB, nil) #"SSLv23_method")
create_makefile("openssl")