mbox series

[liburing,0/2] pkg-config support

Message ID 20190525085830.31577-1-stefanha@redhat.com (mailing list archive)
Headers show
Series pkg-config support | expand

Message

Stefan Hajnoczi May 25, 2019, 8:58 a.m. UTC
Patch 1 adds pkg-config support so that applications are not required to
hardcode compiler flags that may change depending on the distro.

Patch 2 moves installation paths to ./configure so they are adjustable from the
command-line and do not require modifying the makefile.  This is necessary so
Fedora x86_64 can set libdir to /usr/lib64.

I have tested this by building Aarushi Mehta's QEMU io_uring support
using pkg-config on a Fedora x86_64 host.

Stefan Hajnoczi (2):
  pkgconfig: install a liburing.pc file
  configure: move directory options to ./configure

 configure      | 55 +++++++++++++++++++++++++++++++++++++++++++++++++-
 Makefile       | 17 ++++++++++------
 .gitignore     |  2 ++
 liburing.pc.in | 12 +++++++++++
 4 files changed, 79 insertions(+), 7 deletions(-)
 create mode 100644 liburing.pc.in

Comments

Jens Axboe May 25, 2019, 12:37 p.m. UTC | #1
On 5/25/19 2:58 AM, Stefan Hajnoczi wrote:
> Patch 1 adds pkg-config support so that applications are not required to
> hardcode compiler flags that may change depending on the distro.
> 
> Patch 2 moves installation paths to ./configure so they are adjustable from the
> command-line and do not require modifying the makefile.  This is necessary so
> Fedora x86_64 can set libdir to /usr/lib64.
> 
> I have tested this by building Aarushi Mehta's QEMU io_uring support
> using pkg-config on a Fedora x86_64 host.

Applied, thanks.