From patchwork Fri Aug 18 05:50:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 803044 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) 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 3xYXHd2Vg4z9t2x for ; Fri, 18 Aug 2017 15:50:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D308989180; Fri, 18 Aug 2017 05:50:30 +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 bc227h8G4wUN; Fri, 18 Aug 2017 05:50:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id AC1C889168; Fri, 18 Aug 2017 05:50:28 +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 31E491BFCA2 for ; Fri, 18 Aug 2017 05:50:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2428989168 for ; Fri, 18 Aug 2017 05:50:27 +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 f6s4mGklhJgp for ; Fri, 18 Aug 2017 05:50:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout03.t-online.de (mailout03.t-online.de [194.25.134.81]) by whitealder.osuosl.org (Postfix) with ESMTPS id D90218915F for ; Fri, 18 Aug 2017 05:50:25 +0000 (UTC) Received: from fwd13.aul.t-online.de (fwd13.aul.t-online.de [172.20.27.62]) by mailout03.t-online.de (Postfix) with SMTP id 9F1C84245006; Fri, 18 Aug 2017 07:50:23 +0200 (CEST) Received: from fli4l.lan.fli4l (GvJeJsZH8hQGriGaqyIo4YThVhGixveZm8WLOFNoFG2NDGY9IGa+7hkAXvR3n0JQj4@[79.228.27.182]) by fwd13.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1diaAh-4IKPq40; Fri, 18 Aug 2017 07:50:15 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:45264 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.89) (envelope-from ) id 1diaAZ-0005h2-E0; Fri, 18 Aug 2017 07:50:15 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Fri, 18 Aug 2017 07:50:07 +0200 Message-Id: <20170818055007.13273-1-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.11.0 X-ID: GvJeJsZH8hQGriGaqyIo4YThVhGixveZm8WLOFNoFG2NDGY9IGa+7hkAXvR3n0JQj4 X-TOI-MSGID: 7714bc77-2b36-4216-9e4f-8e13a4ffae08 Cc: Simon Dawson Subject: [Buildroot] [PATCH 1/1] package/zmqpp: link with libatomic when needed 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" Fixes http://autobuild.buildroot.net/results/c32/c32b9b8dd00d6f6d3db27fae9d8de758a4f25138/ Signed-off-by: Bernd Kuhls --- package/zmqpp/zmqpp.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/zmqpp/zmqpp.mk b/package/zmqpp/zmqpp.mk index d651c3280..f57652746 100644 --- a/package/zmqpp/zmqpp.mk +++ b/package/zmqpp/zmqpp.mk @@ -13,6 +13,10 @@ ZMQPP_LICENSE_FILES = LICENSE ZMQPP_MAKE_OPTS = LD="$(TARGET_CXX)" BUILD_PATH=./build PREFIX=/usr ZMQPP_LDFLAGS = $(TARGET_LDFLAGS) -lpthread +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +ZMQPP_LDFLAGS += -latomic +endif + ifeq ($(BR2_PACKAGE_ZMQPP_CLIENT),y) ZMQPP_DEPENDENCIES += boost endif