зеркало из https://github.com/github/ruby.git
* 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:
Родитель
05a2cd709f
Коммит
032d0a4cf7
|
@ -1,3 +1,7 @@
|
|||
Mon Feb 20 15:50:33 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in: check if -fstack-protector is really available.
|
||||
|
||||
Sun Feb 19 23:43:38 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/dbm/extconf.rb: show header and library found.
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче