From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Bigonville Subject: Re: Missing linker flags when statically linking Date: Sat, 9 Jul 2016 23:02:44 +0200 Message-ID: References: <270aeb86-be05-03f0-0983-10e199083f56@debian.org> <11381031.WHaSpXZ8Zn@x2> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u69L9M5m032610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 9 Jul 2016 17:09:22 -0400 Received: from anor.bigon.be (anor.bigon.be [91.121.173.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AF7F137E71 for ; Sat, 9 Jul 2016 21:09:21 +0000 (UTC) In-Reply-To: <11381031.WHaSpXZ8Zn@x2> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Steve Grubb , linux-audit@redhat.com List-Id: linux-audit@redhat.com Le 05/07/16 =E0 14:15, Steve Grubb a =E9crit : > Hello, > > On Monday, July 4, 2016 2:08:14 PM EDT Laurent Bigonville wrote: >> Apparently the audit.pc file is missing flags to allow libaudit to be >> statically linked (see [0]). >> >> Adding something like "Requires.private: libcap-ng" should fix the probl= em. > OK. Fixed. There will be a new audit package release in a little while th= at > has this fixed. Apparently the fix is not 100% correct: The "Libs.private" field should be _after_ the Libs one in the .pc file, = otherwise the ordering of the libraries is not OK during liking: -lcap-ng -laudit it should be: -laudit -lcap-ng instead. Also any reasons you are using Libs.private instead of Package.private?