mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
* configure.in: add -fstack-protector. It help to protect us from
stack smashing attack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d0e615e25f
commit
b2eae7891b
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Nov 25 08:05:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* 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@gmail.com>
|
||||
|
||||
* configure.in: add -D_FORTIFY_SOURCE=2. It provide some compile
|
||||
|
|
|
@ -497,6 +497,7 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue