aboutsummaryrefslogtreecommitdiff
path: root/libjava/Makefile.am
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2004-09-28 20:37:40 +0000
committerTom Tromey <tromey@gcc.gnu.org>2004-09-28 20:37:40 +0000
commitbd1c8428dd2dd24c09db4c8ec42ab861a7ff11ee (patch)
tree13b18b0839acaec87da7239413abadb82ead1b6d /libjava/Makefile.am
parent21ef99b8cab857be1b1aa547b7a02b5492f3d929 (diff)
downloadgcc-bd1c8428dd2dd24c09db4c8ec42ab861a7ff11ee.zip
gcc-bd1c8428dd2dd24c09db4c8ec42ab861a7ff11ee.tar.gz
gcc-bd1c8428dd2dd24c09db4c8ec42ab861a7ff11ee.tar.bz2
re PR libgcj/17222 (libjava fails to build due to command line length during link)
PR libgcj/17222: * Makefile.am (libgcj.la): Restored. * Makefile.in: Rebuilt. From-SVN: r88251
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r--libjava/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index 543b488..1527cc5 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -211,6 +211,15 @@ libgcj_la_DEPENDENCIES = libgcj-@gcc_version@.jar \
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.