This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why my 'ar.exe' and 'ld.exe' does not work with the inline parameter '@objectslistfile'


Felix Lee <felix.1@canids.net> writes:

> since argv length is a hard limit imposed by an OS, a program that
> expects to iterate over the argv list will always be limited and the
> usual workaround is running the program multiple times (xargs) which
> isn't always appropriate.

I've written Makefiles in the past that use xargs(1) to build large
archive libraries.  I used something like this to append to the
archive on each xargs iteration:

        xargs -n 10 ar r foo.a < objlist        # ten should be safe

Ben


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