ruby-changes:21788
From: kosaki <ko1@a...>
Date: Fri, 25 Nov 2011 08:50:10 +0900 (JST)
Subject: [ruby-changes:21788] kosaki:r33837 (trunk): * configure.in: turn on PIE if --enable-shared is not specified.
kosaki 2011-11-25 08:50:00 +0900 (Fri, 25 Nov 2011) New Revision: 33837 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33837 Log: * configure.in: turn on PIE if --enable-shared is not specified. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 33836) +++ configure.in (revision 33837) @@ -2350,6 +2350,12 @@ ]) ], [ LIBRUBYARG_SHARED= + + # enable PIE if possible + if test "$GCC" = yes; then + RUBY_TRY_CFLAGS(-fPIE, [RUBY_APPEND_OPTION(XCFLAGS, -fPIE) + RUBY_APPEND_OPTION(XLDFLAGS, -pie)]) + fi ]) if test "$enable_rpath" = yes; then test -z "$LIBRUBY_RPATHFLAGS" || LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS " Index: ChangeLog =================================================================== --- ChangeLog (revision 33836) +++ ChangeLog (revision 33837) @@ -1,3 +1,7 @@ +Fri Nov 25 08:48:35 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * configure.in: turn on PIE if --enable-shared is not specified. + Fri Nov 25 08:05:07 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * configure.in: add -fstack-protector. It help to protect us from -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/