Well, if I blindly replace all occurences of:
in the libgcj Makefile to:
during build time, I now get the magic message:
using piecewise archive linking...
and everything is hunky dory after this.
This variable is determined by the 'ltconfig' configuration
script for libtool (and is very high, IMO), but obviously
'ar' has other ideas of what it likes.
Ranjit Mathew wrote:
> libgcj (GCJ Java libraries) uses 'libtool' to build
> the final library, which ultimately invokes 'ar' to
> create the library file. The problem is that 'ar' is
> dying out because of the large number of object files
> (around 1046 - and that when I leave out the Java AWT
> classes and related objects!) The precise error message
> displayed is:
> ./libtool: /mingw/bin/ar: Invalid argument
> All of these object file names are thrown at 'ar' by
> libtool on a single command line.
> I know that 'ar' can be used to "additively" build
> a library, but libtool doesn't seem to. :-)
> Any idea on how to coax libtool (other than editing
> the libtool script itself) into giving 'ar' only a
> fair bit each time to build the library?
> Is this an issue only with the MinGW 'ar'? I ask this
> because I guess the GCJ developers have been able to
> build libgcj on their platforms using the same makefiles...
> Thanks in advance for your help.
> Sincerely Yours,
> Ranjit Mathew.
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> MinGW-users mailing list
> You may change your MinGW Account Options or unsubscribe at: