Mail Archives: djgpp/1997/04/21/23:09:13
SteelGolem wrote:
>
> how do you tear apart .a files and get the .o files out of them? i want
> to use allegro, but i want to take out the parts that i won't be
> needing, so that my executable won't be as big as it would be
> otherwise.. any help? email, pleeze!
Don't you think the linker would be smart enough to do that by itself?
Otherwise, every DJGPP compiled program would be over 650K long after
the linker got through with 'libc.a'! Since this is obviously not the
case, I don't think you need to worry. For tips on reducing the size of
DJGPP-compiled executables, read section 8.15 of the FAQ.
Second point: since you have obviously built Allegro, the .o files
should still be there in the Allegro source directory. You don't need
to extract them from the library.
If you really do want to extract files from a library, just use 'ar'.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| Proud owner of what might one | http://www.cs.com/fighteer |
| day be a spectacular MUD... | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------
- Raw text -