Missing linker flags when statically linking

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Jul 10 12:17:12 UTC 2016


Hello,

On Sun, 10 Jul 2016 10:45:13 +0200, Laurent Bigonville wrote:

> >> Also any reasons you are using Libs.private instead of Package.private?  
> > Libs.private is used to add flags for static linking. The dynamic linker
> > shouldn't need a hint since libaudit its already linked to libcap-ng.  
> 
> I was talking about Package*.private* not package itself. 
> Package.private is the equivalent to Libs.private but for libs that also 
> have a .pc file

Agreed. When possible, Package.private should be preferred over
Libs.private.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com




More information about the Linux-audit mailing list