Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

* configure.in: Don't use PIE on Haiku because loader support is not enough #181

Closed
wants to merge 1 commit into from

2 participants

@toyoshim

No description provided.

@toyoshim

With this patch, I finally succeed to finish make all & install in Haiku!!

@kosaki kosaki closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 18 additions and 12 deletions.
  1. +18 −12 configure.in
View
30 configure.in
@@ -2676,19 +2676,25 @@ AS_CASE("$enable_shared", [yes], [
LIBRUBYARG_SHARED=
# enable PIE if possible
- 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)
- for pie in -pie -Wl,-pie; do
- RUBY_TRY_LDFLAGS([$pie], [], [pie=])
- if test "x$pie" != x; then
- RUBY_APPEND_OPTION(XLDFLAGS, $pie)
- break
- fi
- done
+ AS_CASE(["$target_os"],
+ [haiku], [
+ # gcc supports PIE, but doesn't work correctly in Haiku
+ ],
+ [
+ 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)
+ for pie in -pie -Wl,-pie; do
+ RUBY_TRY_LDFLAGS([$pie], [], [pie=])
+ if test "x$pie" != x; then
+ RUBY_APPEND_OPTION(XLDFLAGS, $pie)
+ break
+ fi
+ done
+ fi
fi
- fi
+ ])
])
if test "$enable_rpath" = yes; then
test -z "$LIBRUBY_RPATHFLAGS" || LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS "
Something went wrong with that request. Please try again.