Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

* 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

Takashi Toyoshima kosaki
Takashi Toyoshima

No description provided.

Takashi Toyoshima

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

kosaki kosaki closed this September 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Sep 11, 2012
Takashi Toyoshima * configure.in: Don't use PIE on Haiku because loader support is not …
…enough
1530371
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 18 additions and 12 deletions. Show diff stats Hide diff stats

  1. 30  configure.in
30  configure.in
@@ -2676,19 +2676,25 @@ AS_CASE("$enable_shared", [yes], [
2676 2676
   LIBRUBYARG_SHARED=
2677 2677
 
2678 2678
   # enable PIE if possible
2679  
-  if test "$GCC" = yes -a -z "$EXTSTATIC"; then
2680  
-    RUBY_TRY_CFLAGS(-fPIE, [pie=yes], [pie=no])
2681  
-    if test "$pie" = yes; then
2682  
-      RUBY_APPEND_OPTION(XCFLAGS, -fPIE)
2683  
-      for pie in -pie -Wl,-pie; do
2684  
-	RUBY_TRY_LDFLAGS([$pie], [], [pie=])
2685  
-	if test "x$pie" != x; then
2686  
-	  RUBY_APPEND_OPTION(XLDFLAGS, $pie)
2687  
-	  break
2688  
-	fi
2689  
-      done
  2679
+  AS_CASE(["$target_os"],
  2680
+  [haiku], [
  2681
+    # gcc supports PIE, but doesn't work correctly in Haiku
  2682
+  ],
  2683
+  [
  2684
+    if test "$GCC" = yes -a -z "$EXTSTATIC"; then
  2685
+      RUBY_TRY_CFLAGS(-fPIE, [pie=yes], [pie=no])
  2686
+      if test "$pie" = yes; then
  2687
+	RUBY_APPEND_OPTION(XCFLAGS, -fPIE)
  2688
+	for pie in -pie -Wl,-pie; do
  2689
+	  RUBY_TRY_LDFLAGS([$pie], [], [pie=])
  2690
+	  if test "x$pie" != x; then
  2691
+	    RUBY_APPEND_OPTION(XLDFLAGS, $pie)
  2692
+	    break
  2693
+	  fi
  2694
+	done
  2695
+      fi
2690 2696
     fi
2691  
-  fi
  2697
+  ])
2692 2698
 ])
2693 2699
 if test "$enable_rpath" = yes; then
2694 2700
     test -z "$LIBRUBY_RPATHFLAGS" || LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS "
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.