This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


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

Re: Args list too long


> I don't know about automake, but libtool does support
>
> $(LIBTOOL) $(CC) -o collapsed.lo obj1.lo obj2.lo obj3.lo ...
>

The above doesn't work for me. I've changed the libjava Makefile to the
following:

libgcj.la: libgcj1.lo libgcj2.lo libgcj3.lo libgcj4.lo libgcj5.lo libgcj6.lo
libgcj7.lo libgcj8.lo
    $(libgcj_la_LINK) -rpath $(toolexeclibdir) $(libgcj_la_LDFLAGS)
libgcj1.lo libgcj2.lo libgcj3.lo libgcj4.lo libgcj5.lo libgcj6.lo libgcj7.lo
libgcj8.lo $(LIBS)

libgcj1.lo: $(special_java_source_files:.java=.lo)
    $(LIBTOOL) $(CC) -o $@ $(special_java_source_files:.java=.lo)

libgcj2.lo: $(core_java_source_files:.java=.lo)
    $(LIBTOOL) $(CC) -o $@ $(core_java_source_files:.java=.lo)

etc...

When linking the libgcj.la, the following error occurs:
/bin/sh ./libtool --mode=link
/SCRATCH/bsmith/gcc-20001225-irix/gcc/xgcc -B/SCRATCH/bsmith/gcc-20001225-ir
ix/gcc/ -B/home/bsmith/bin/IRIX64/mips-sgi-irix6.5/bin/ -B/home/bsmith/bin/I
RIX64/mips-sgi-irix6.5/lib/ -isystem
/home/bsmith/bin/IRIX64/mips-sgi-irix6.5/include -L/SCRATCH/bsmith/gcc-20001
225-irix/mips-sgi-irix6.5/libjava -g    -o libgcj.la -rpath
/home/bsmith/bin/IRIX64/lib -L/SCRATCH/bsmith/gcc-20001225-irix/mips-sgi-iri
x6.5/libjava/../libstdc++-v3/libsupc++ -lsupc++ -rpath
/home/bsmith/bin/IRIX64/lib -version-info `grep -v '^#'
../../../gcc-20001225/libjava/libtool-version` libgcj1.lo libgcj2.lo
libgcj3.lo libgcj4.lo libgcj5.lo libgcj6.lo libgcj7.lo libgcj8.lo

libtool: link: `libgcj1.lo' is not a valid libtool object

Additional help would be appreciated.

Thanks,
  Bradley



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