ruby-changes:21821
From: nobu <ko1@a...>
Date: Sun, 27 Nov 2011 19:09:21 +0900 (JST)
Subject: [ruby-changes:21821] nobu:r33870 (trunk): * configure.in (stack_protector): disable on mingw. [Bug#5676]
nobu 2011-11-27 19:09:11 +0900 (Sun, 27 Nov 2011) New Revision: 33870 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33870 Log: * configure.in (stack_protector): disable on mingw. [Bug#5676] Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 33869) +++ configure.in (revision 33870) @@ -497,7 +497,13 @@ fi if test "$GCC" = yes; then RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)]) - RUBY_TRY_CFLAGS(-fstack-protector, [stack_protector=yes], [stack_protector=no]) + AS_CASE(["$target_os"], + [mingw*], [ + stack_protector=no + ], + [ + RUBY_TRY_CFLAGS(-fstack-protector, [stack_protector=yes], [stack_protector=no]) + ]) if test "x$stack_protector" = xyes; then RUBY_APPEND_OPTION(XCFLAGS, -fstack-protector) RUBY_APPEND_OPTION(XLDFLAGS, -fstack-protector) Index: ChangeLog =================================================================== --- ChangeLog (revision 33869) +++ ChangeLog (revision 33870) @@ -1,5 +1,7 @@ -Sun Nov 27 18:54:05 2011 Nobuyoshi Nakada <nobu@r...> +Sun Nov 27 19:09:02 2011 Nobuyoshi Nakada <nobu@r...> + * configure.in (stack_protector): disable on mingw. [Bug#5676] + * Makefile.in (DLDFLAGS): also needs -fstack-protector. [Bug#5676] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/