Howto: Repackage a library with only the routines of interest?

2010-06-02 Thread bruce . labitt
Is there a way to repackage a static library (to reduce it size) by including only the functions (and their dependencies) that are needed? Are there any tools to help do this? (Help find dependencies, especially. I think doing this manually would take months...) I've managed to rewrite my alg

Re: Howto: Repackage a library with only the routines of interest?

2010-06-02 Thread David
Hi Bruce, I think you'd need to recompile the library. I'm not sure if the 'ar' command might be able to do this, I've never tried it. Hopefully the author was nice enough to include a bunch of preprocessor directives to make removing library functions easy. Another way to shrink the binary is

Re: Howto: Repackage a library with only the routines of interest?

2010-06-02 Thread Michael ODonnell
While doing the reverse of what you're asking (ie. combining multiple objects into a single object with mutual references resolved) is common, the information necessary to uncombine them is generally lost in the process, so your best bet would (as others have said) probably be to modify the build

Re: Howto: Repackage a library with only the routines of interest?

2010-06-02 Thread Tom Buskey
ar d to delete modules? ar x to extract I once built libc.a on a minix system. I had to use tsort on another system to get the dependencies & order correct. tsort needed more RAM then minix could provide. On Wed, Jun 2, 2010 at 10:20 AM, Michael ODonnell < michael.odonn...@comcast.net> wrote:

Re: Howto: Repackage a library with only the routines of interest?

2010-06-02 Thread Michael ODonnell
> ar d to delete modules? > ar x to extract Gaack! You guys have been saying "library" right along and my distracted brain kept translating that to "object" ie. a monolith. But you're right, of course - if he's linking against an ar archive he should be able to pick it apart using ar. And if

Open Source Auction Web Site software on Linux

2010-06-02 Thread Dan Jenkins
A client of mine asked me this morning to create a new domain and web site for on-line auctions of their items &, eventually, consignments (they are in the collectibles/antiques business, primarily weaponry). They are not trying to reinvent eBay; they only want to list their own items and not t

Re: Open Source Auction Web Site software on Linux

2010-06-02 Thread Ray Cote
Hi Dan: While I won't say it is anywhere near 'best', I did write an Auction package for some local organizations. Written in Django and thus easily customized. Is pretty straight forward to use and extend. You can see samples of it at:

Re: Howto: Repackage a library with only the routines of interest?

2010-06-02 Thread Bruce Labitt
Thanks for the tip on tsort. I'll try that. The trick is not the actual archive manipulation, but sorting through the dependencies. Here's hoping it is not too ugly... On Jun 2, 2010 10:41 AM, "Tom Buskey" wrote: ar d to delete modules? ar x to extract I once built libc.a on a minix system.

Re: Howto: Repackage a library with only the routines of interest?

2010-06-02 Thread Thomas Charron
On Wed, Jun 2, 2010 at 9:46 AM, wrote: > Is there a way to repackage a static library (to reduce it size) by > including only the functions (and their dependencies) that are needed? Trying adding --gc-sections to the command line compile. This will garbage collect unused stuff, so it's not in