bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cygwin failure with large number of sources


From: Christopher Hulbert
Subject: Re: Cygwin failure with large number of sources
Date: Wed, 14 Jun 2006 10:59:01 -0400

On 6/14/06, Ralf Wildenhues <address@hidden> wrote:
* Christopher Hulbert wrote on Wed, Jun 14, 2006 at 04:37:50PM CEST:
> On 6/14/06, Ralf Wildenhues <address@hidden> wrote:
> >
> >setting not trigger a multiple archiver invocation?
> >All these questions may be answered by the output of
> >  ./libtool --debug [rest of command line] >log 2>&1

> That won't work.  It's crashing I guess trying to call libtool with
> all those arguments.

Ah, there is a fix for this:  Create a file with all objects listed in
it.  Use it as argument to the libtool option -objectlist.

If you want to create the file from a Makefile, and have all the object
names in a variable, you could do
  echo $(ALLOBJECTS) | tr ' ' '\n' > libfoo.objectlist

but it could possibly fail as well (the shell command being too long,
too), leaving you with the need to resort to some other means to create
the list, possibly by using make variables which contain only subsets of
object names which are short enough for the command line.

If that still fails, but now inside libtool, post as decribed above.

Cheers,
Ralf



Well, this library wont add/rm source files too often, so I'll create
the file statically and just add the -objlist flag to the AM_LDFLAGS
variable?

As a side, I posted to the libtool mailing list about some more PGI
conflicts I'm having.  It's not necessarily a libtool bug since it
assumes msvc support if not using the gcc compiler.  It seems to work
if I manually set the with_gcc=yes in the libtool script.  Can I pass
that on the AM_LDFLAGS variable?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]