mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in (_FORTIFY_SOURCE): added a few comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e1807e5995
commit
2e544471ae
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Mar 15 14:45:02 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* configure.in (_FORTIFY_SOURCE): added a few comments.
|
||||
|
||||
Fri Mar 15 14:17:55 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread_pthread.c (numberof): renamed from ARRAY_SIZE() because
|
||||
|
|
|
@ -684,6 +684,10 @@ if test "$GCC" = yes; then
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue