1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in: turn on PIE if --enable-shared is not specified.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-11-24 23:50:00 +00:00
parent b2eae7891b
commit 98975ba9dc
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Fri Nov 25 08:48:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: turn on PIE if --enable-shared is not specified.
Fri Nov 25 08:05:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: add -fstack-protector. It help to protect us from

View file

@ -2350,6 +2350,12 @@ AS_CASE("$enable_shared", [yes], [
])
], [
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 "