This is the mail archive of the
mailing list for the binutils project.
Re: Why my 'ar.exe' and 'ld.exe' does not work with the inline parameter '@objectslistfile'
Felix Lee <firstname.lastname@example.org> 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