On 29/11/2016 19:34, Diego Biurrun wrote:
> Previously, all link-time dependencies were added for all libraries,
> resulting in bogus link-time dependencies since not all dependencies
> are shared across libraries. Also, in some cases like libavutil, not
> all dependencies were taken into account, resulting in some cases of
> underlinking.
>
> To address all this mess a machinery is added for tracking which
> dependency belongs to which library component and then leveraged
> to determine correct dependencies for all individual libraries.
> ---
> +add_extralibs_lib(){
> + lib=$1
> + shift
> + prepend extralibs_${lib} $($ldflags_filter "$@")
> + unique extralibs_${lib}
This is dangerous, if you want to have minimal link lines make it two
pass, one to flatten the list of foo_extralibs and then use unique over
that list and eventually unwrap it with the actual link commands.
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel