From patchwork Thu Apr 26 19:53:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asaf Kahlon X-Patchwork-Id: 905333 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="YqutpQ30"; 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 40X76h1NK4z9s02 for ; Fri, 27 Apr 2018 05:53:47 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 74D5089878; Thu, 26 Apr 2018 19:53:45 +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 U4GocUpMrf0F; Thu, 26 Apr 2018 19:53:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5F267898CE; Thu, 26 Apr 2018 19:53:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E39791C3EC6 for ; Thu, 26 Apr 2018 19:53:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E0B718A7C8 for ; Thu, 26 Apr 2018 19:53:42 +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 YsIP5YhJvwTs for ; Thu, 26 Apr 2018 19:53:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by hemlock.osuosl.org (Postfix) with ESMTPS id 0B4FA8A7BF for ; Thu, 26 Apr 2018 19:53:42 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id d1-v6so57898060wrj.13 for ; Thu, 26 Apr 2018 12:53:41 -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=BJ+ulMNrwPWmgFMYYgWA+kxyU+GX2WgCvbSRygBEiRE=; b=YqutpQ30FYATRX+DTtc9wbrPxtNI+eA8ksZ+YonJHrzjIYUi1iqXWtbHjRwfwlUpnq eD9FuCdDFZZrFnOFOP88oYwn26zRLVHmHBaaVJznr4iIKoI4Z3yMIxtITnLYg4rz3GAy 9ifBPbTv/8DM5H6Uky42OaYqnBsEfO28fzO20y6CbcT5aPYLGnbwQhlXL5qpQBqC669E CiJPf+9GRyGED6LJDSAaycrTUiEH+TnZf8MhAznWpU1iDqo+qmxV4L9y/RvYU+gJcGQ6 /foK9tl2Jl0v6Qyh12d+e2dwOqWAnGVCBFJeTMA+5HytdIW0kFpKLhRGAeXAA+jthsn7 XB9A== 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=BJ+ulMNrwPWmgFMYYgWA+kxyU+GX2WgCvbSRygBEiRE=; b=O3Ii2KIRfJKM/ubf1o+6NY2ph2ly0Y8RNT06jszOCtaTXcaH6OqLY++0hTpZG39Y+h ERNWwvSpC78QGFpTVstuEq9akJs65IJFIJywSEZ7ZkTw47cjGPPvV6Xc5V+Gz9CIDaLA Gv4vBQApn5Qg+9CP3LaNfSvkLEtkzbv+LF+yhKJBmXaOXG0oZqlwCA5uP04raSdjd7PF Hsy3t0zLE4sgVb+DMGK1JSTNUaC2vETr4Ico7CkBq3dQXc6p96MfRUv8xg1EJXWfUnJD +BKE08Tz/D93Uy+YqjyFI4/KMaAQSoQDTxNduzpGKveOwaHa6SaSsfrNWdYZYPnFz8AG iLlg== X-Gm-Message-State: ALQs6tAxMz4NXB8pXhkPdZ6f+vTavRG2ZPwvuDRE5CBZ57PkOhcMZtO+ hZogsniDgvb2Z4Nq7Z/+oHY+rw== X-Google-Smtp-Source: AIpwx4/5mgcyiwF2cF1LCAGbnLPAcEnCxyGTPHWJ7KtRbpX+gGdtnka4hxQYue3WnL20Qqx5PvhgXg== X-Received: by 2002:adf:bbce:: with SMTP id z14-v6mr29801110wrg.183.1524772420386; Thu, 26 Apr 2018 12:53:40 -0700 (PDT) Received: from localhost.localdomain (bzq-84-108-5-46.cablep.bezeqint.net. [84.108.5.46]) by smtp.gmail.com with ESMTPSA id q15sm4176905wmf.11.2018.04.26.12.53.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 12:53:39 -0700 (PDT) From: Asaf Kahlon To: buildroot@buildroot.org Date: Thu, 26 Apr 2018 22:53:09 +0300 Message-Id: <20180426195309.26042-1-asafka7@gmail.com> X-Mailer: git-send-email 2.17.0 Subject: [Buildroot] [PATCH 1/1] zeromq: add libatomic linkage when available 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: Asaf Kahlon MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: http://autobuild.buildroot.net/results/ff5f7d3bcd713db9c9d92a746d6ad7134748fe16 http://autobuild.buildroot.net/results/9a743da1c3be673288c3482a9e7ddea12750206f http://autobuild.buildroot.net/results/818b12387e6117569c4fab310b98c11fac80c047 If libatomic is available, it should be added to LIBS in CONF_ENV, since without it we can get into a state in which symbols like __atomic_fetch_sub_4, __atomic_compare_exchange_4 and __atomic_fetch_add_4 can't be found. Signed-off-by: Asaf Kahlon --- package/zeromq/zeromq.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk index 8273cad763..214bd9e35c 100644 --- a/package/zeromq/zeromq.mk +++ b/package/zeromq/zeromq.mk @@ -58,4 +58,8 @@ else ZEROMQ_CONF_OPTS += --disable-libunwind endif +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +ZEROMQ_CONF_OPTS += LIBS=-latomic +endif + $(eval $(autotools-package))