From b85e3e70eee6905e34eb8efae9db9f9eb75d94f8 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 16 May 2012 09:05:59 +0000 Subject: [PATCH] * configure.in (PIE): fix operator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 71c2828124..a398b5ebd7 100644 --- a/configure.in +++ b/configure.in @@ -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)