[Buildroot] [autobuild.buildroot.net] Build results for 2016-05-13
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon May 16 12:50:31 UTC 2016
Hello,
On Mon, 16 May 2016 13:23:44 +0100, Martin Bark wrote:
> > And indeed, it has been merged half an hour ago. However, I'm wondering
> > why you have not used pkg-config instead. The drawback of -lgcrypt
> > -lgpg-error is that now, even in dynamic linking situations, the
> > iputils binary has a direct reference to libgpg-error.
>
> yes my first thought was to use libgrypt-config but in the end I
> decided to keep it simple because iputils only has a basic Makefile
> with no configure script. It's the same situation we had with linking
> against the libm. I going to asking the maintainer if they would
> accept a change to add a cmake or autotools build system so solve this
> kind of issue neatly.
Well, going all the way to autotools or cmake is not really necessary
to solve these problems. You can just call pkg-config from a Makefile:
LDFLAGS = $(shell pkg-config --libs libgcrypt)
and that's it. No?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list