From b2e137c81e70ca23676d5847be8719db8df2e5a6 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 1 Dec 2011 01:32:02 +0000 Subject: [PATCH] * configure.in (LDFLAGS): -fstack-protector is always needed to link static library created with it. [ruby-core:41387] [Bug#5686] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ configure.in | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4bb04c1b03..e02b84c2c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Dec 1 10:31:55 2011 Nobuyoshi Nakada + + * configure.in (LDFLAGS): -fstack-protector is always needed to + link static library created with it. [ruby-core:41387] + [Bug#5686] + Thu Dec 1 07:03:51 2011 KOSAKI Motohiro * configure.in: add sys/prctl.h test. diff --git a/configure.in b/configure.in index e37849eadc..e685913c33 100644 --- a/configure.in +++ b/configure.in @@ -510,6 +510,7 @@ if test "$GCC" = yes; then if test "x$stack_protector" = xyes; then RUBY_APPEND_OPTION(XCFLAGS, -fstack-protector) RUBY_APPEND_OPTION(XLDFLAGS, -fstack-protector) + RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector) fi # suppress annoying -Wstrict-overflow warnings