[Buildroot] [PATCH v3] mediastreamer: fix avcodec functions conflict

Peter Korsgaard peter at korsgaard.com
Tue Sep 4 21:56:15 UTC 2018


>>>>> "Giulio" == Giulio Benetti <giulio.benetti at micronovasrl.com> writes:

Hi,

 >> Committed after extending the commit message to clarify that this is
 >> about static linking, thanks.

 > Sorry for my ignorance, so library order during linking is an issue only
 > with static libraries?

Yes, when statically linking ld will only pull in the object files
containing referenced symbols, so you need to list the libraries in the
dependency order (E.G. if you call a function in library a that in turn
calls a function in library b then you must use -la -b).

For details, see
E.G. https://eli.thegreenplace.net/2013/07/09/library-order-in-static-linking

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list