On Fri, 18 Sep 2009, Tamas TEVESZ wrote: > On Fri, 18 Sep 2009, Alexey I. Froloff wrote: > > > > > if... it so happens that someone has some time to kill... :) > > > Add -Wl,--add-needed to LDFLAGS to figure what is really > > > required. > > do you perhaps mean --as-needed? (i don't even understand what > --add-needed does, the manual on that option looks like whoever typed > that was either mostly drunk, or having missed all grammar lessons, or > both).
ok, i dug a little deeper, now i think i understand what --add-needed does (and still think the manual is more confusing than not), and still think you meant --as-needed. --(no-)add-needed seems to be for controlling indirect dependencies, whereas --as-needed brings more intelligence to the picture by actually checking symbol usage before declaring a library as "needed". still, this sounds somewhat of a last resort, as in it will create elf objects (binaries or libraries) with only the actually needed dependencies, but it only seems better to actually know what is needed, and record this knowledge in the build procedure, no? -- [-] mkdir /nonexistent -- To unsubscribe, send mail to [email protected].
