ruby-changes:27719
From: kosaki <ko1@a...>
Date: Sat, 16 Mar 2013 14:07:04 +0900 (JST)
Subject: [ruby-changes:27719] kosaki:r39771 (trunk): * configure.in (_FORTIFY_SOURCE): added a few comments.
kosaki 2013-03-16 14:06:32 +0900 (Sat, 16 Mar 2013) New Revision: 39771 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39771 Log: * configure.in (_FORTIFY_SOURCE): added a few comments. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 39770) +++ configure.in (revision 39771) @@ -684,6 +684,10 @@ if test "$GCC" = yes; then https://github.com/ruby/ruby/blob/trunk/configure.in#L684 test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-g3, [debugflags=-g3])} # -D_FORTIFY_SOURCE + # When defined _FORTIFY_SOURCE, glibc enables some additional sanity + # argument check. The performance drop is very little and Ubuntu enables + # _FORTIFY_SOURCE=2 by default. So, let's support it for protecting us from + # a mistake of silly C extensions. RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)]) # -fstack-protector Index: ChangeLog =================================================================== --- ChangeLog (revision 39770) +++ ChangeLog (revision 39771) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Mar 15 14:45:02 2013 KOSAKI Motohiro <kosaki.motohiro@g...> + + * configure.in (_FORTIFY_SOURCE): added a few comments. + Fri Mar 15 14:17:55 2013 KOSAKI Motohiro <kosaki.motohiro@g...> * thread_pthread.c (numberof): renamed from ARRAY_SIZE() because -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/