help with linking please

Tim Kientzle kientzle at acm.org
Tue Jan 13 15:41:02 PST 2004


Alfred Perlstein wrote:
> It will refuse to strip symbols if:
> 
> foo.o:func1() references bar.o:func2().
> 
> But I need it to.

I suppose there are good reasons why you
cannot compile everything into a single
.o file for distribution?

 > cat master.c
#include <foo.c>
#include <bar.c>
 > gcc -o master.o master.c

Now you have a single .o file with everything
in it and there are therefore no cross-module
references within your library.

Tim



More information about the freebsd-hackers mailing list