Date: Tue, 13 Jan 2004 15:40:08 -0800 From: Tim Kientzle <kientzle@acm.org> To: Alfred Perlstein <alfred@freebsd.org> Cc: hackers@freebsd.org Subject: Re: help with linking please Message-ID: <400481D8.2030708@acm.org> In-Reply-To: <20040110222441.GS9623@elvis.mu.org> References: <20040110050033.GP9623@elvis.mu.org> <xzp3caojbo5.fsf@dwp.des.no> <20040110222441.GS9623@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?400481D8.2030708>