From patchwork Wed May 9 08:43:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 910711 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.136; helo=silver.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="PBVmU2Bb"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40gqd83k2Pz9s3q for ; Wed, 9 May 2018 18:43:23 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1D642261E5; Wed, 9 May 2018 08:43:18 +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 GqwTr0UHxlO8; Wed, 9 May 2018 08:43:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id ED430227F1; Wed, 9 May 2018 08:43:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id AFD4B1C0CF8 for ; Wed, 9 May 2018 08:43:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AD25686CD7 for ; Wed, 9 May 2018 08:43:15 +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 VymxFBL9o0BJ for ; Wed, 9 May 2018 08:43:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id CB4F186C98 for ; Wed, 9 May 2018 08:43:14 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id o4-v6so34852522wrm.0 for ; Wed, 09 May 2018 01:43:14 -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=hivZAWb/b+A2MobKtWJeWDhXYnOLFBIYce92N6kO/tk=; b=PBVmU2Bb/Jt258rXooHvJulDgekdppbcGcqW2EvOCjYEtVjMjl0sReUuk71pYyE9oR NYV1AEyJIvsjqAjCLSZuI1jX2WmltCKVRvZnnt4GRAP3hcoEpizLg6N2ttY0lW7iYgWg b25NppgvuPK/EGFl6oxP7QuQGA/F6yyTL8OxKfWpPOigbXl5zBFqzWfUkDYEcRbcp146 Ug15h8SBJblwi2N3a0cMtAgXrgGgUjCNn/0OzpXc02FDlHOUTOx/nhIBCY2wvP+gv4gB PnHHfisJysAohmz6yrKVC+EZ1bMsEyrnWTgftUua/rnjxWGCPsNQ2QpP42/ghEAkIu6f b/bg== 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=hivZAWb/b+A2MobKtWJeWDhXYnOLFBIYce92N6kO/tk=; b=ETGvQllzva61fg6hfs39dN9IvCHCrwMDZD3gZHhjZBHax6GUTc8G5+82bcFdGRQ3tm BsIlkyYL3b46nP/P6oIT2O0c9khEOEMc5s0CyAX7mK+OgUdF0gOGVjUbVP/Im9lymof9 4WCUQt38WftHgCzrIn2cCG32q4m6cHXd2RhzrBC7ZcF1YtBk++SQ3JB7ztepnxiKnD4I KHgomCCLndnkwRLGKkdNenk2F4c1dHknHaOwxNUduhBtj5oGkpgpFvVXb03JfZMWbSbz uguSgDtIv5C3HvUolJSgfwzG+8F9T4Oa5X3xAlcZjYzmkVhRQIOzmL9KiliwqQa3qRxu jnvw== X-Gm-Message-State: ALQs6tAnAo6bo1In6SrAcoyPT/SPlFMS9ncYYrMKITZRYSyibs2qcXk7 Bg63tVnAiW6/ZgXTlozps4NU9g== X-Google-Smtp-Source: AB8JxZom1wnFWm+dL3BT2Q1si8e5JGVZRBW0Y0jGulbOBK4Ik7qrw9TBtt2D717vCD4hG30tUi+SLQ== X-Received: by 2002:adf:ce03:: with SMTP id p3-v6mr34574748wrn.110.1525855392879; Wed, 09 May 2018 01:43:12 -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 a14-v6sm41785492wra.84.2018.05.09.01.43.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 01:43:11 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Wed, 9 May 2018 10:43:05 +0200 Message-Id: <20180509084305.18797-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [Buildroot] [PATCH v2,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 --- Changes v1 -> v2 (after review of Thomas Petazzoni): - Update to have a clearer approach package/libcap/libcap.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk index 48c2cb3456..a947fa0686 100644 --- a/package/libcap/libcap.mk +++ b/package/libcap/libcap.mk @@ -18,6 +18,9 @@ HOST_LIBCAP_DEPENDENCIES = host-gperf ifeq ($(BR2_STATIC_LIBS),y) LIBCAP_MAKE_TARGET = libcap.a libcap.pc LIBCAP_MAKE_INSTALL_TARGET = install-static +else ifeq ($(BR2_SHARED_LIBS),y) +LIBCAP_MAKE_TARGET = all +LIBCAP_MAKE_INSTALL_TARGET = install-shared else LIBCAP_MAKE_TARGET = all LIBCAP_MAKE_INSTALL_TARGET = install