Long Command Lines and @FILE

Joel Sherrill joel@rtems.org
Thu Sep 16 15:03:30 GMT 2021


Hi

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. :)

Thanks.

--joel


More information about the Binutils mailing list