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

Giulio Benetti giulio.benetti at micronovasrl.com
Wed Sep 5 06:29:36 UTC 2018


Hello all,

Il 05/09/2018 00:10, Arnout Vandecappelle ha scritto:
> 
> 
> On 04/09/2018 23:56, Peter Korsgaard wrote:
>>>>>>> "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
> 
>   Note the explanation of --start-group/--end-group, which is sometimes the
> easiest way to fix a linking order issue.

Thank you that clarified me a lot.
Giulio




More information about the buildroot mailing list