[Mesa-dev] [PATCH] configure.ac: use pkg-config for libelf

Jan Vesely jan.vesely at rutgers.edu
Mon Nov 23 06:45:57 PST 2015


On Tue, 2015-11-24 at 01:07 +1100, Jonathan Gray wrote:
> On Mon, Nov 23, 2015 at 07:52:44AM -0600, Jan Vesely wrote:
> > On Mon, 2015-11-23 at 14:24 +1100, Jonathan Gray wrote:
> > > Use PKG_CHECK_MODULES to get the flags to link libelf.
> > 
> > This has been discussed before, and it does not work with elfutils:
> > http://lists.freedesktop.org/archives/mesa-dev/2014-October/069748.
> > html
> > 
> > Jan
> 
> Back to
> export LDFLAGS=-L/usr/local/lib
> export CPPFLAGS="-I/usr/local/include -I/usr/local/include/libelf"
> 
> to make mesa build when linking libelf here on OpenBSD then...
> 
> $ pkg-config --cflags
> libelf                                                               
>                            
> -I/usr/local/include/libelf -I/usr/local/include
> 
> $ pkg-config --libs libelf   
> -L/usr/local/lib -lelf

I'm no autotools expert, but maybe we can combine both approaches; try
pkg-config first, if it fails, fall back to the old way.

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151123/87fc8729/attachment-0001.sig>


More information about the mesa-dev mailing list