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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to