Long Command Lines and @FILE

Mike Frysinger vapier@gentoo.org
Thu Sep 16 15:25:10 GMT 2021


On 16 Sep 2021 10:03, Joel Sherrill wrote:
> I am probably remembering something wrong since I can't find any
> documentation that says this should work. A Cygwin RTEMS user is
> blowing up the command line limit building a library with ar and way
> too many files with long paths. I have a vague recollection that you
> could do something like:
> 
> ar crv mylibrary.a @LIST
> 
> And LIST be a file that contains a list of objects to add. Is this in
> binutils or some other ancient toolchain I encountered and thought
> this was a nifty feature?
> 
> I think they could do it with an MRI style script or maybe a linker
> script with the list of objects.
> 
> Any suggestions on best practices for dealing with situations like
> this? My thoughts always focus on fixing their build system rather
> than a direct workaround to the too long command. :)

https://sourceware.org/binutils/docs-2.37/binutils/Common-Options.html
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20210916/724bdb68/attachment-0001.sig>


More information about the Binutils mailing list