From patchwork Mon Sep 18 20:56:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bradford Barr X-Patchwork-Id: 815171 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=density-io.20150623.gappssmtp.com header.i=@density-io.20150623.gappssmtp.com header.b="yABnvA/O"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xwz3b1XDxz9s7m for ; Tue, 19 Sep 2017 07:02:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9823E8947F; Mon, 18 Sep 2017 21:02:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jy8aZ8CkhdlQ; Mon, 18 Sep 2017 21:02:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A49218947E; Mon, 18 Sep 2017 21:02:31 +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 BA12B1C24E3 for ; Mon, 18 Sep 2017 21:02:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B4C5430BB2 for ; Mon, 18 Sep 2017 21:02:29 +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 dv1vhLEA27sZ for ; Mon, 18 Sep 2017 21:02:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf0-f170.google.com (mail-pf0-f170.google.com [209.85.192.170]) by silver.osuosl.org (Postfix) with ESMTPS id E555F2E0D6 for ; Mon, 18 Sep 2017 21:02:28 +0000 (UTC) Received: by mail-pf0-f170.google.com with SMTP id d187so851922pfg.11 for ; Mon, 18 Sep 2017 14:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=density-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=m70Z9CgJt4qsrDvh2rguxxVV49qIXC9173y/1xyeTYw=; b=yABnvA/ODCk+9kyshJIdtdWfQXbicEYDNiK8A2C1uHORm0/2tPXsTufE3Jpj7ZmgGj 4/qjQABYgRhDcE0ZPeMh2lz7tSvIiQBWxW863dzM6mEKhz9XaKE5J+6sB0hV8DlTWmeR 3ptF7tbxOUJJEbQtooVITWcljctk4gfZVFxe7d+gOcfsmr30HPBJo09j08BqKUO4kPII +ppGraBZaF7wTALhRfxhd35Fw2c8fOBTDn8nQzJMm4ye0sPBYV8GWGRnMGfu1jQoNDS8 fv4PEDfwNQ9pFDDrpfq++uHZMDGF2lKTXPj7dqxiGPJnzHVVN3xx3ZHIZkgdNXIbuogP xf+A== 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=m70Z9CgJt4qsrDvh2rguxxVV49qIXC9173y/1xyeTYw=; b=psE/00NaGd5tziyatVXsy9KAApFrwDGs+OrAJU3e+dh5590M1S610LWNUaawyYepYj cBAx7guVO50kzehgKGTnXrCbYUosUkZEVtQpy/hY/9Q3q2NkaYMpuS606k45bETZzGwV be9RKcdxZuHkzR1XxDj9+VaPOYkKN637E17AfTJ0F+uLfpfX1Acgv2FhuqaXqJzDWh65 8KVyT4jHtsPO7OF4ZpbTh7Ryv1s6KekG2P4kL9nI5ubwozBqxQKutZnUlzy4erjSKFcv pZxB/qAQX4Pm9iKQGgk5nv/wDMHN9gMig3RgaVnuDrTX/FGG6QSD/b5cGAu22LnskWcf buiw== X-Gm-Message-State: AHPjjUhIyG7qKJ7WAGFJFHE+NA3JEyWlkZjj3sQbbN7f+AhRYxj+Gi0E YFSG5hU68XONOpSy1wJAzQ== X-Google-Smtp-Source: ADKCNb4rE5WBpto6roxyvKteh+PQtmPsv7ZAPkWSKKzzJtHqcJtdr+bnMBBIAr3jLm7f5LICnvIh8Q== X-Received: by 10.98.14.29 with SMTP id w29mr33080184pfi.229.1505768169637; Mon, 18 Sep 2017 13:56:09 -0700 (PDT) Received: from density.io ([2600:8805:a080:bd:449e:44bd:4ba7:ad5b]) by smtp.gmail.com with ESMTPSA id w9sm276713pfg.129.2017.09.18.13.56.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Sep 2017 13:56:08 -0700 (PDT) From: Bradford Barr To: buildroot@buildroot.org Date: Mon, 18 Sep 2017 16:56:04 -0400 Message-Id: <20170918205604.26827-1-bradford@density.io> X-Mailer: git-send-email 2.9.3 Cc: Simon Dawson , bradford barr Subject: [Buildroot] [PATCH 1/1] msgpack: new option install libs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: bradford barr New option to install libs. MessagePack is implemented both as a C++ header and a C runtime library. If all applications linking to msgpack use the C++ header library there's no need to install the C library. This option allows a user to prevent installing unused libraries. Signed-off-by: bradford barr --- package/msgpack/Config.in | 14 ++++++++++++++ package/msgpack/msgpack.mk | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/package/msgpack/Config.in b/package/msgpack/Config.in index b8e8213..f32af9e 100644 --- a/package/msgpack/Config.in +++ b/package/msgpack/Config.in @@ -13,3 +13,17 @@ config BR2_PACKAGE_MSGPACK comment "msgpack needs a toolchain w/ C++" depends on !BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_SYNC_4 + +if BR2_PACKAGE_MSGPACK + +config BR2_PACKAGE_MSGPACK_INSTALL_LIB + bool "install lib" + default y + help + MessagePack ships both a C library and a C++ header library. + Selecting this option will install the C library in the target + directory. + + https://github.com/msgpack/msgpack-c#c-header-only-library + +endif diff --git a/package/msgpack/msgpack.mk b/package/msgpack/msgpack.mk index 66dbc8d..4133e0b 100644 --- a/package/msgpack/msgpack.mk +++ b/package/msgpack/msgpack.mk @@ -10,6 +10,10 @@ MSGPACK_LICENSE = BSL-1.0 MSGPACK_LICENSE_FILES = COPYING MSGPACK_INSTALL_STAGING = YES +ifneq ($(BR2_PACKAGE_MSGPACK_INSTALL_LIB),y) +MSGPACK_INSTALL_TARGET = NO +endif + define MSGPACK_INSTALL_TARGET_CMDS cp -a $(@D)/libmsgpackc.so* $(TARGET_DIR)/usr/lib endef