From d11ef850b21cadc92b8b2bb509c3a329dc70cd43 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 13 Sep 2012 01:22:13 +0000 Subject: [PATCH] configure.in: no PIE on Haiku * configure.in: Don't use PIE on Haiku because loader support is not enough. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ configure.in | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 15eeaf98fd..76eb8654e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 13 10:22:11 2012 Takashi Toyoshima + + * configure.in: Don't use PIE on Haiku because loader support is not + enough. + Thu Sep 13 08:20:00 2012 Zachary Scott * lib/shellwords.rb: Documentation for Shellwords. diff --git a/configure.in b/configure.in index 95787f5d85..5131952682 100644 --- a/configure.in +++ b/configure.in @@ -2676,7 +2676,13 @@ AS_CASE("$enable_shared", [yes], [ LIBRUBYARG_SHARED= # enable PIE if possible - if test "$GCC" = yes -a -z "$EXTSTATIC"; then + pie= + AS_CASE(["$target_os"], + [haiku], [ + # gcc supports PIE, but doesn't work correctly in Haiku + pie=no + ]) + if test "$GCC" = yes -a -z "$EXTSTATIC" -a "x$pie" != xno; then RUBY_TRY_CFLAGS(-fPIE, [pie=yes], [pie=no]) if test "$pie" = yes; then RUBY_APPEND_OPTION(XCFLAGS, -fPIE)