diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 2b56b749d4..7b14caa571 100644 --- a/configure.in +++ b/configure.in @@ -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) |