[Mesa-dev] [PATCH] configure.ac: use pkg-config for libelf
Jonathan Gray
jsg at jsg.id.au
Mon Nov 23 06:07:16 PST 2015
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
More information about the mesa-dev
mailing list