From patchwork Tue May 8 16:11:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 910312 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qOdUAtgK"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40gPd50V4Jz9s1w for ; Wed, 9 May 2018 02:11:52 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7AD4885E17; Tue, 8 May 2018 16:11:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id few7n0+b8fnv; Tue, 8 May 2018 16:11:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3CDC385EB3; Tue, 8 May 2018 16:11:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 1165E1C2092 for ; Tue, 8 May 2018 16:11:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 0E46A22848 for ; Tue, 8 May 2018 16:11:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fPWgA7l6Mzju for ; Tue, 8 May 2018 16:11:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by silver.osuosl.org (Postfix) with ESMTPS id 3D4F5220E2 for ; Tue, 8 May 2018 16:11:45 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id 94-v6so31544311wrf.5 for ; Tue, 08 May 2018 09:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=cczpNUpBYHDvSRxHVXYfkLLA6KTVZ2dcznVAcZLvigk=; b=qOdUAtgKLCGWlyku0GI3EPdlJvEWi86vtMybZS5VT7sjl+Fwzo0KryrjUlmFU0n1lk I+1PkazfHFHlMASqCxpfXs+C+7cXhay3vzSJBnHq0xH81NsVbITL6u2/oHlJfhzAjQeu hFVZ0AXKNLSBA7I5mRTFlpKFNwEKD0H7yovIqVO3K4O16uFAdjMgvoeoRzeauG4g3lN+ gYSV6V/zbIfApFOrz/veihce+8spqVE3TK4yy/A9fbT1zrS8zcKShtaMEoF2MgZ0Jxb3 xDADZiYQ10YKGH2axcCawI8oQ8eFmBCUSsbSRKTMTcY+/pVOm8mTcr9qzUH1IvvG086H uSMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cczpNUpBYHDvSRxHVXYfkLLA6KTVZ2dcznVAcZLvigk=; b=ssA8ZIfiMffpQfPTaTVw0TNe2LS58tq3SvJxKNtY+EDYHJobvyY2ZCRj2kxkfZA7Oo Q3AwFr9POpSUO02yKRk47PXbpnUlQyn+yRuA/SRPOkg415y/5RHM4xPrFYnofi/JmwnC WS1mJOVNyQpLnVKvs5fekTVP8azbyqZukB5H+nVqsF773Jtk9+skCc7+6LrJ2+X2CRfe D0NhpplaPbgQij07HPDsssXMFygsMHbi8SC1n9lJRFQ7I0a6g4ZmZ0C4Abqo5h4+yLTb MjRm0gh5B9gPMjNN+MNzVr3F2M+hy2or9VHBIZPU6yP61fTQz/SnlhzftnH/M11gWb+/ La3w== X-Gm-Message-State: ALQs6tC2qlMg8og1PVt5cDV4fe1QgCYGGTmUCvQ3AdUW78xY821x6lAw OjhWvpHDuGUGMfEgtJaBaYzRmw== X-Google-Smtp-Source: AB8JxZp3aJnsrlECt/cH9cmNyQ419ef5eqZrQ7pWOayD6GNvkqwBWKB64/rU1LWvkq59YR2s97XwsA== X-Received: by 2002:adf:ea90:: with SMTP id s16-v6mr32295896wrm.17.1525795903409; Tue, 08 May 2018 09:11:43 -0700 (PDT) Received: from fabrice-VirtualBox.home (ARennes-656-1-8-206.w2-14.abo.wanadoo.fr. [2.14.205.206]) by smtp.gmail.com with ESMTPSA id l20-v6sm18058756wrf.90.2018.05.08.09.11.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 09:11:42 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Tue, 8 May 2018 18:11:36 +0200 Message-Id: <20180508161136.13531-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [Buildroot] [PATCH 1/1] libcap: only install shared version X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" If BR2_SHARED_LIBS is set, only install shared version of library (continue to build both libraries through all target as there is no libcap.so target but only a libcap.so.$(VERSION).$(MINOR)) Signed-off-by: Fabrice Fontaine --- package/libcap/libcap.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk index 48c2cb3456..247fd8a58f 100644 --- a/package/libcap/libcap.mk +++ b/package/libcap/libcap.mk @@ -20,8 +20,12 @@ LIBCAP_MAKE_TARGET = libcap.a libcap.pc LIBCAP_MAKE_INSTALL_TARGET = install-static else LIBCAP_MAKE_TARGET = all +ifeq ($(BR2_SHARED_LIBS),y) +LIBCAP_MAKE_INSTALL_TARGET = install-shared +else LIBCAP_MAKE_INSTALL_TARGET = install endif +endif LIBCAP_MAKE_FLAGS = \ BUILD_CC="$(HOSTCC)" \