[plug] gcc toolchain problem

Carl Gherardi carl.gherardi at gmail.com
Thu Mar 24 18:18:12 WST 2005


On Thu, 24 Mar 2005 17:46:09 +0800, Cameron Patrick
<cameron at patrick.wattle.id.au> wrote:
> Carl Gherardi wrote:
> 
> > I know i've told it to link libm, I figure there must be a way for the
> > gcc toolchain to only create dynamic links in the resulting binary iff
> > the binary calls functions from within it, but cant figure out how.
> >
> > Any ideas?
> 
> I've seen programmes which use scary shell script fragments which
> repeatedly invoke the linker, removing libraries until it stops
> linking correctly.  IIRC either Vim or Emacs does this.
> 
> I presume there's a good reason you can't just link only to the
> libraries you actually use?

Yeah, the makefile is common and needs to be - the library is used
widely in the sub programs - more mods need to be made to just include
where necessary.



More information about the plug mailing list