This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/41991] gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin*
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2009 15:33:45 -0000
- Subject: [Bug java/41991] gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin*
- References: <bug-41991-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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