Mail Archives: djgpp/2002/05/22/12:45:07
Rafal 'Raf256' Maj <admin AT raf256 DOT com> wrote:
> 1) what should I do when there will bo to much objects, so last command
> line (ar crs upi.a u_mem.o 2.o 3.o etc...) will be longer then 255
> characters ?
Stop using a .bat file for this. A true 'Makefile' to be run by
'make' is what you should use --- it's really easy once you understand
what you want to do, and how to tell 'make' about it.
Or, if you really want to stick with a .bat: use a response file that
holds the list of .o's for you:
ar rcs libfoo.a @ofiles.lst
where "ofiles.lst" is a text file that holds the full list of .o files
you want to link.
> 2) I looked into final .a file, it had many imho unnecessary informations,
> how can I shrink it ?
You had better leave it to the GCC and binutils authors to decide what
is necessary and what isn't, in an .o or .a file.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -