2016-06-10 15:49, Ferruh Yigit: > On 6/10/2016 2:19 PM, Thomas Monjalon wrote: > > On a linker command line, the dependencies must be declared after > > the libraries using them. > > It will avoid some issues when building an application with static > > libraries and --as-needed option. > > > > Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com> > > --- > > Do we need this which driver used which library detail? > > I think it is enough to move all external library dependencies to the > last in command line, without paying attention who use it, Linker will > handle the rest, if that library is not required it won't be linked against.
I prefer avoiding garbage and have a justification for dependencies.