mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
* configure.in: check if -fstack-protector is really available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
05a2cd709f
commit
032d0a4cf7
2 changed files with 7 additions and 0 deletions
|
@ -505,6 +505,9 @@ if test "$GCC" = yes; then
|
|||
],
|
||||
[
|
||||
RUBY_TRY_CFLAGS(-fstack-protector, [stack_protector=yes], [stack_protector=no])
|
||||
if test "x$stack_protector" = xyes; then
|
||||
RUBY_TRY_LDFLAGS(-fstack-protector, [], [stack_protector=broken])
|
||||
fi
|
||||
])
|
||||
if test "x$stack_protector" = xyes; then
|
||||
RUBY_APPEND_OPTION(XCFLAGS, -fstack-protector)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue