[asterisk-dev] [asterisk-commits] file: trunk r95648 - /trunk/codecs/Makefile
Kevin P. Fleming
kpfleming at digium.com
Wed Jan 2 08:06:28 CST 2008
Kevin P. Fleming wrote:
> If you list libresample.a as a an object file to be linked into the main
> binary (*NOT* with a -l parameter), the linker will link the entire
> library in regardless of whether any of its symbols are referenced.
Well, there I go starting the new year off with an error... yay!
This is not correct as it turns out... this is only true if you list .o
files on the linker command line. Static libraries *are* dropped out of
the link (or more properly the .o files inside them) if nothing in them
is referenced.
I've just committed a reversal of Russell's 'res_resample' commit with
some small changes to get the libresample code to actually link into the
main Asterisk binary; I've tested this with both non-embedded and
embedded modules and it appears to work... non-Linux testing would be
welcome.
--
Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)
More information about the asterisk-dev
mailing list