* configure.in (-fstack-protector): also needed in DLDFLAGS.
[Bug#5676] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
929e69fdca
commit
c4cd97a563
@ -1,3 +1,8 @@
|
|||||||
|
Sun Nov 27 18:25:30 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* configure.in (-fstack-protector): also needed in DLDFLAGS.
|
||||||
|
[Bug#5676]
|
||||||
|
|
||||||
Sun Nov 27 14:13:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Sun Nov 27 14:13:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* configure.in: add -fstack-protector into XLDFLAGS as well as
|
* configure.in: add -fstack-protector into XLDFLAGS as well as
|
||||||
|
@ -497,8 +497,12 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then
|
|||||||
fi
|
fi
|
||||||
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
||||||
RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)])
|
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)
|
RUBY_TRY_CFLAGS(-fstack-protector, [stack_protector=yes], [stack_protector=no])
|
||||||
RUBY_APPEND_OPTION(XLDFLAGS, -fstack-protector)])
|
if test "x$stack_protector" = xyes; then
|
||||||
|
RUBY_APPEND_OPTION(XCFLAGS, -fstack-protector)
|
||||||
|
RUBY_APPEND_OPTION(XLDFLAGS, -fstack-protector)
|
||||||
|
RUBY_APPEND_OPTION(DLDFLAGS, -fstack-protector)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$GCC" = ""; then
|
if test "$GCC" = ""; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user