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

* configure.in (PIE): fix operator.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-05-16 09:05:59 +00:00
parent a2976afa0e
commit b85e3e70ee

View file

@ -2516,7 +2516,7 @@ AS_CASE("$enable_shared", [yes], [
LIBRUBYARG_SHARED=
# enable PIE if possible
if test "$GCC" = yes and -z "$EXTSTATIC"; then
if test "$GCC" = yes -a -z "$EXTSTATIC"; then
RUBY_TRY_CFLAGS(-fPIE, [pie=yes], [pie=no])
if test "$pie" = yes; then
RUBY_APPEND_OPTION(XCFLAGS, -fPIE)