This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/41991] gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin*



------- Comment #28 from howarth at nitro dot med dot uc dot edu  2009-12-03 15:33 -------
Possible fix which is untested...

Index: libjava/configure.ac
===================================================================
--- libjava/configure.ac        (revision 154950)
+++ libjava/configure.ac        (working copy)
@@ -889,6 +889,9 @@
         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
       fi
     ;;
+    *darwin*)
+      SYSTEMSPEC="-Wl,-allow_stack_execute"
+    ;;
     *)
       SYSTEMSPEC=
     ;;
Index: libjava/configure
===================================================================
--- libjava/configure   (revision 154950)
+++ libjava/configure   (working copy)
@@ -19595,6 +19595,9 @@
         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
       fi
     ;;
+    *darwin*)
+      SYSTEMSPEC="-Wl,-allow_stack_execute"
+    ;;
     *)
       SYSTEMSPEC=
     ;;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41991


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]