From patchwork Thu Jul 18 10:06:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1133657 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=railnova.eu Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=railnova-eu.20150623.gappssmtp.com header.i=@railnova-eu.20150623.gappssmtp.com header.b="eACnAu4A"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45q8tz6NZ6z9sBt for ; Thu, 18 Jul 2019 20:07:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 494DE87622; Thu, 18 Jul 2019 10:07:01 +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 Sz+Yu0escIyR; Thu, 18 Jul 2019 10:06:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D340487675; Thu, 18 Jul 2019 10:06:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 9BA561BF2F9 for ; Thu, 18 Jul 2019 10:06:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9895686A3D for ; Thu, 18 Jul 2019 10:06:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7WT_bWvKqqM2 for ; Thu, 18 Jul 2019 10:06:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id CC3EC86A3C for ; Thu, 18 Jul 2019 10:06:56 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id 207so24988936wma.1 for ; Thu, 18 Jul 2019 03:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=railnova-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8uObp9v2crojSOXO0TuI7PCKEF+sQDTl+9NOSgdl2h0=; b=eACnAu4AlR5ov6667iKHIDr5DCRI04rvYQPGDtvr+qFt6tbmM3L4BTv1mkl3EnB63P zZtxAWkzbChRt5JcXz/vuu9IH2ckCRNeBoAe4lyWEh6dukisuKlsPNC6R/4vbXhPlvtp brICAhRU58opXfMTiXBOqBAWaBRz+1aXE5cF0pp8wFXtzAcNoPtjDbSn7ytbaTvlA67z 5twBMbbUjt9/YQz8VtQMIZTb3Tlu2YGFuS8LsVRvuU27HP3dpfYWuSLtx1FOJjUVaO14 PWG1rTtkSehjtbC2b814tzBy1EFvgHEcMPgBSaqST3xeQcirUiX6802yRNxa3N3NKIm1 qlPA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=8uObp9v2crojSOXO0TuI7PCKEF+sQDTl+9NOSgdl2h0=; b=QS+Bx7lQNvpu98vntdMHweNsWL43mJ2CqYC9ZF9rxCHVFgb8oZhYarkdwVn7o2e5r5 i5rY1M9kSmLJ23mxBWnmgGHxGZmVp9vhiDrv3CvH+WskECy4io1fJlBHzKuuPp2vUizT grj4d0SNJp43RazqI6LlvOs35T5+6AJEHNUeA8rrDPsgJSugimIWIhkgG+jZwx93LVlz iPiArw5DZVrFWP3oV1OEok22AmkGbatPkWjlOPuFXjib2nYYngA1TOKY5TVYxlhZLOqy cy5nceuZ8O3J43QLQgDGKUnQokJydiKkYBrDC8iwVin5JkUOC3H/aqzfr1fDGBWMdTiv KxQA== X-Gm-Message-State: APjAAAVzVorOEZiA/D1U6bfa/8YhHMbW4a6/SVX5d9fl5yxmCmNZ0oxd fHcBWY5GwCup3IugZmFP97YUjQtk1j23uA== X-Google-Smtp-Source: APXvYqxpCg9tctUOxwldOnvLEurKUWzNlTCzsQCoLIbfYEzQxfQm+C10Ak1v2QJTjC0fxrbNEb3f7A== X-Received: by 2002:a05:600c:1007:: with SMTP id c7mr39786114wmc.161.1563444414973; Thu, 18 Jul 2019 03:06:54 -0700 (PDT) Received: from localhost.localdomain ([212.76.254.67]) by smtp.gmail.com with ESMTPSA id f204sm35910856wme.18.2019.07.18.03.06.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 03:06:54 -0700 (PDT) From: Titouan Christophe To: buildroot@buildroot.org Date: Thu, 18 Jul 2019 12:06:34 +0200 Message-Id: <20190718100636.27290-2-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190718100636.27290-1-titouan.christophe@railnova.eu> References: <20190718100636.27290-1-titouan.christophe@railnova.eu> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3] package/mosquitto: allow to build as static lib X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Korsgaard , Titouan Christophe Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Titouan Christophe --- package/mosquitto/Config.in | 4 ---- package/mosquitto/mosquitto.mk | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package/mosquitto/Config.in b/package/mosquitto/Config.in index 11b6d7891b..7135e86e69 100644 --- a/package/mosquitto/Config.in +++ b/package/mosquitto/Config.in @@ -1,6 +1,5 @@ config BR2_PACKAGE_MOSQUITTO bool "mosquitto" - depends on !BR2_STATIC_LIBS # builds .so help Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol versions 3.1 and @@ -22,6 +21,3 @@ config BR2_PACKAGE_MOSQUITTO_BROKER comment "mosquitto broker needs a system with MMU" depends on BR2_PACKAGE_MOSQUTTO && !BR2_USE_MMU - -comment "mosquitto needs a toolchain w/ dynamic library" - depends on BR2_STATIC_LIBS diff --git a/package/mosquitto/mosquitto.mk b/package/mosquitto/mosquitto.mk index 51c0abd0ba..ed72af754a 100644 --- a/package/mosquitto/mosquitto.mk +++ b/package/mosquitto/mosquitto.mk @@ -17,6 +17,12 @@ MOSQUITTO_MAKE_OPTS = \ WITH_WRAP=no \ WITH_DOCS=no +ifeq ($(BR2_STATIC_LIBS),y) +MOSQUITTO_MAKE_OPTS += WITH_STATIC_LIBRARIES=yes WITH_SHARED_LIBRARIES=no +else +MOSQUITTO_MAKE_OPTS += WITH_STATIC_LIBRARIES=no WITH_SHARED_LIBRARIES=yes +endif + # adns uses getaddrinfo_a ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y) MOSQUITTO_MAKE_OPTS += WITH_ADNS=yes