This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
enable static libgcj on darwin
- From: Adam Megacz <megacz at cs dot berkeley dot edu>
- To: java-patches at gcc dot gnu dot org
- Date: Tue, 26 Dec 2006 20:57:57 -0800
- Subject: enable static libgcj on darwin
This patch makes static libgcj builds work on Darwin.
Since darwin doesn't have a crtbegin.o/crtend.o (gcc only supports
this for COFF and ELF), the jcr section doesn't really work. Until
there is support for Mach-O in crtbegin/end, we need to fall back to
alternative methods of getting classes registered.
Ok to commit?
- a
Index: gcc/config/i386/darwin.h
===================================================================
--- gcc/config/i386/darwin.h (revision 120174)
+++ gcc/config/i386/darwin.h (working copy)
@@ -51,6 +51,8 @@
} \
while (0)
+#define TARGET_USE_JCR_SECTION 0
+
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")