ruby-changes:21480
From: emboss <ko1@a...>
Date: Thu, 27 Oct 2011 08:43:16 +0900 (JST)
Subject: [ruby-changes:21480] emboss:r33529 (trunk): * ext/openssl/extconf.rb: add -Wall flag by default when compiler is
emboss 2011-10-27 08:43:04 +0900 (Thu, 27 Oct 2011) New Revision: 33529 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33529 Log: * ext/openssl/extconf.rb: add -Wall flag by default when compiler is GCC. Modified files: trunk/ChangeLog trunk/ext/openssl/extconf.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 33528) +++ ChangeLog (revision 33529) @@ -1,3 +1,8 @@ +Thu Oct 27 08:38:41 2011 Martin Bosslet <Martin.Bosslet@g...> + + * ext/openssl/extconf.rb: add -Wall flag by default when compiler is + GCC. + Wed Oct 26 15:24:25 2011 Nobuyoshi Nakada <nobu@r...> * file.c (rb_file_join): honor input encodings than ASCII-8BIT. Index: ext/openssl/extconf.rb =================================================================== --- ext/openssl/extconf.rb (revision 33528) +++ ext/openssl/extconf.rb (revision 33529) @@ -22,15 +22,18 @@ 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" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/