diff options
author | emboss <emboss@ruby-lang.org> | 2011-10-26 23:43:04 +0000 |
---|---|---|
committer | emboss <emboss@ruby-lang.org> | 2011-10-26 23:43:04 +0000 |
commit | 0556f6ce728cfd9d87c56669e17eb24c208d5d31 (patch) | |
tree | e9d6e03c28f5a84b995f82165086ce538a385c8c /ext/openssl/extconf.rb | |
parent | 167a3577df28d7f27cb1dc7bada64765608bfd7f (diff) | |
download | ruby-openssl-history-0556f6ce728cfd9d87c56669e17eb24c208d5d31.tar.gz |
* ext/openssl/extconf.rb: add -Wall flag by default when compiler is
GCC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/extconf.rb')
-rw-r--r-- | ext/openssl/extconf.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 114f805..8d8cee3 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -22,15 +22,18 @@ dir_config("kerberos") message "=== OpenSSL for Ruby configurator ===\n" ## -# Adds -Wall -DOSSL_DEBUG for compilation and some more targets when GCC is used +# Adds -DOSSL_DEBUG for compilation and some more targets when GCC is used # To turn it on, use: --with-debug or --enable-debug # if with_config("debug") or enable_config("debug") $defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG" +end - if CONFIG['GCC'] == 'yes' - $CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall" - end +## +# Automatically adds -Wall flag for compilation when GCC is used +# +if CONFIG['GCC'] == 'yes' + $CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall" end message "=== Checking for system dependent stuff... ===\n" |