Re: Patching away the use of static libraries

"clemens fischer" <[email protected]> 24 Jul 2002 17:42:57 +0200
Newsgroups gmane.org.djb.miscellaneous
Organization no
Message-ID <[email protected]>
> Paul Jarc:

> Malte Tancred <[email protected]> wrote:
> > I patched the makefile so that no libraries were generated, eg:
> ...
> > It's ugly but it compiles without warnings and the programs
> > seem to work as expected.
> >
> >    What I am wondering if is this kind of patching is "ok"?
> 
> It should have the same results, except that you may be including
> objects that aren't needed for a particular program.  You could try
> linking just the original .o files, and see which symbols are left
> undefined, and then include only the necessary object files that would
> have been found in the library.

maybe apple has the customary tools for dealing with symbols on object
files, like unix' nm(1) or objdump(1).  they list symbols wanted and
defined, together with their relocatable addresses, and a letter indicative
of the kind of the symbol (T for a defined label, t for a wanted one, or
vice versa, etc.).

clemens