1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in: add -D_FORTIFY_SOURCE=2. It provide some compile

time and runtime check for security.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-11-24 23:04:35 +00:00
parent b418bc9be4
commit d0e615e25f
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Nov 25 08:03:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: add -D_FORTIFY_SOURCE=2. It provide some compile
time and runtime check for security.
Fri Nov 25 08:00:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* lib/mkmf.rb: get rid of warnings of mkmf.rb if -Wmissing-declarations

View file

@ -495,6 +495,10 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then
rb_cv_warnflags="$warnflags"
warnflags=
fi
if test "$GCC" = yes; then
RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)])
fi
if test "$GCC" = ""; then
AS_CASE(["$target_os"],[aix*],[warnflags="-qinfo=por"])
fi