* 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:
parent
b418bc9be4
commit
d0e615e25f
@ -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>
|
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
|
* lib/mkmf.rb: get rid of warnings of mkmf.rb if -Wmissing-declarations
|
||||||
|
@ -495,6 +495,10 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then
|
|||||||
rb_cv_warnflags="$warnflags"
|
rb_cv_warnflags="$warnflags"
|
||||||
warnflags=
|
warnflags=
|
||||||
fi
|
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
|
if test "$GCC" = ""; then
|
||||||
AS_CASE(["$target_os"],[aix*],[warnflags="-qinfo=por"])
|
AS_CASE(["$target_os"],[aix*],[warnflags="-qinfo=por"])
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user