From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH for-4.5] systemd: use pkg-config to determine systemd library availability Date: Fri, 5 Dec 2014 11:02:35 +0100 Message-ID: <20141205100235.GA18455@aepfle.de> References: <1417533090-29651-1-git-send-email-wei.liu2@citrix.com> <20141205095146.GA16843@aepfle.de> <1417773588.22808.52.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1417773588.22808.52.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Mark Pryor , Wei Liu , "Luis R. Rodriguez" , Ian Jackson , xen-devel@lists.xen.org, Anthony Perard List-Id: xen-devel@lists.xenproject.org On Fri, Dec 05, Ian Campbell wrote: > On Fri, 2014-12-05 at 10:51 +0100, Olaf Hering wrote: > > On Tue, Dec 02, Wei Liu wrote: > > > > > AC_CHECK_LIB fails on Debian Jessie since the ld flag it generates is > > > incorrect, even in the event systemd library is available. Use > > > PKG_CHECK_MODULES instead. > > > > > > Tested on Debian Jessie and Arch Linux. > > > > I just tested this and got this failure. The reason is that the LDFLAGS come > > before the objects. If I move LDFLAGS after $^ linking works. Will send a patch > > to fix the failure. > > Was this a new failure with this change? AFAICT LDFLAGS is still set > (via SYSTEMD_LIBS) in the same place relative to non-systemd stuff. No, happens even without it. I just realized that I missed a git rebase. My own packages do not have systemd-devel yet, so I did not spot this earlier. Maybe it just happens with the latest toolchain in Factory. Last time it worked well in 13.1 at least, SLE12 was ok as well. Olaf