ruby-changes:21787
From: kosaki <ko1@a...>
Date: Fri, 25 Nov 2011 08:06:47 +0900 (JST)
Subject: [ruby-changes:21787] kosaki:r33836 (trunk): * configure.in: add -fstack-protector. It help to protect us from
kosaki 2011-11-25 08:06:26 +0900 (Fri, 25 Nov 2011) New Revision: 33836 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33836 Log: * configure.in: add -fstack-protector. It help to protect us from stack smashing attack. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 33835) +++ configure.in (revision 33836) @@ -497,6 +497,7 @@ fi if test "$GCC" = yes; then RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)]) + RUBY_TRY_CFLAGS(-fstack-protector, [RUBY_APPEND_OPTION(XCFLAGS, -fstack-protector)]) fi if test "$GCC" = ""; then Index: ChangeLog =================================================================== --- ChangeLog (revision 33835) +++ ChangeLog (revision 33836) @@ -1,3 +1,8 @@ +Fri Nov 25 08:05:07 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * configure.in: add -fstack-protector. It help to protect us from + stack smashing attack. + Fri Nov 25 08:03:28 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * configure.in: add -D_FORTIFY_SOURCE=2. It provide some compile -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/