From patchwork Sat May 25 08:58:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 10960681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD096933 for ; Sat, 25 May 2019 09:06:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEA8928A2D for ; Sat, 25 May 2019 09:06:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97C4728A7D; Sat, 25 May 2019 09:06:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E01128A2D for ; Sat, 25 May 2019 09:06:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726453AbfEYJGp (ORCPT ); Sat, 25 May 2019 05:06:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59434 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726376AbfEYJGp (ORCPT ); Sat, 25 May 2019 05:06:45 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DDC1C8535D; Sat, 25 May 2019 09:06:44 +0000 (UTC) Received: from localhost (ovpn-116-47.ams2.redhat.com [10.36.116.47]) by smtp.corp.redhat.com (Postfix) with ESMTP id 20C785C206; Sat, 25 May 2019 09:06:41 +0000 (UTC) From: Stefan Hajnoczi To: Jens Axboe Cc: linux-block@vger.kernel.org, Aarushi Mehta , Julia Suvorova , Stefan Hajnoczi Subject: [PATCH liburing 0/2] pkg-config support Date: Sat, 25 May 2019 09:58:28 +0100 Message-Id: <20190525085830.31577-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sat, 25 May 2019 09:06:45 +0000 (UTC) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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