From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CE77D1397E9 for ; Tue, 18 Aug 2015 14:39:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79CB5E07B3; Tue, 18 Aug 2015 14:39:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2ECF2E07B3 for ; Tue, 18 Aug 2015 14:39:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E86A83409EA for ; Tue, 18 Aug 2015 14:39:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B19E3149 for ; Tue, 18 Aug 2015 14:39:18 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1439908737.cf374052a31b6d396eae288dce46df604a953209.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: cf374052a31b6d396eae288dce46df604a953209 X-VCS-Branch: master Date: Tue, 18 Aug 2015 14:39:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f59242fb-364a-4655-b8d1-d0604325e9e6 X-Archives-Hash: 156331a4693df0118d94ce346a55dfe3 commit: cf374052a31b6d396eae288dce46df604a953209 Author: Mike Frysinger gentoo org> AuthorDate: Tue Aug 18 14:38:42 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Aug 18 14:38:57 2015 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=cf374052 build: use pkg-config for libcap settings Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4e3da14..4b0f862 100644 --- a/Makefile +++ b/Makefile @@ -40,9 +40,13 @@ INS_DATA := install -m644 #CFLAGS += -DEBUG -g #LDFLAGS += -pie +PKG_CONFIG ?= pkg-config + ifeq ($(USE_CAP),yes) -CPPFLAGS-pspax.c += -DWANT_SYSCAP -LIBS-pspax += -lcap +LIBCAPS_CFLAGS := $(shell $(PKG_CONFIG) --cflags libcap) +LIBCAPS_LIBS := $(shell $(PKG_CONFIG) --libs libcap) +CPPFLAGS-pspax.c += $(LIBCAPS_CFLAGS) -DWANT_SYSCAP +LIBS-pspax += $(LIBCAPS_LIBS) endif ifdef PV