This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: PR libgcj/17222
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 28 Sep 2004 14:34:40 -0600
- Subject: Patch: FYI: PR libgcj/17222
- Reply-to: tromey at redhat dot com
I'm checking this in.
This fixes PR libgcj/17222 by restoring the old special rule to build
libgcj.la using libtool's "-objectlist" feature. Kelly Cook tested
this on Cygwin, I tried it out on x86 Linux.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
PR libgcj/17222:
* Makefile.am (libgcj.la): Restored.
* Makefile.in: Rebuilt.
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.416
diff -u -r1.416 Makefile.am
--- Makefile.am 25 Sep 2004 22:21:48 -0000 1.416
+++ Makefile.am 28 Sep 2004 20:32:05 -0000
@@ -211,6 +211,15 @@
java/lang/fdlibm.h java/lang/ieeefp.h java/lang/mprec.h \
$(LIBLTDL) $(LIBFFI) $(ZLIBS) $(GCLIBS) $(propertyo_files)
+## Pass the list of object files to libtool in a temporary file to
+## avoid tripping platform command line length limits.
+libgcj.la: $(libgcj_la_OBJECTS) $(libgcj_la_DEPENDENCIES)
+ @echo Creating list of files to link...
+ @: $(call write_entries_to_file,$(libgcj_la_OBJECTS),libgcj.objectlist)
+ $(libgcj_la_LINK) -objectlist libgcj.objectlist \
+ $(libgcj_la_LIBADD) \
+ -rpath $(toolexeclibdir) $(libgcj_la_LDFLAGS) $(LIBS)
+
# Include THREADLIBS here to ensure that the correct version of
# certain linuxthread functions get linked:
## The mysterious backslash in the grep pattern is consumed by make.