Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Asaf Kahlon <asafka7@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] zeromq: add libatomic linkage when available
Date: Thu, 26 Apr 2018 22:53:09 +0300	[thread overview]
Message-ID: <20180426195309.26042-1-asafka7@gmail.com> (raw)

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 <asafka7@gmail.com>
---
 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))
-- 
2.17.0

             reply	other threads:[~2018-04-26 19:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26 19:53 Asaf Kahlon [this message]
2018-04-28 13:39 ` [Buildroot] [PATCH 1/1] zeromq: add libatomic linkage when available Thomas Petazzoni
2018-04-29 18:40   ` Asaf Kahlon
2018-05-07 15:46     ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180426195309.26042-1-asafka7@gmail.com \
    --to=asafka7@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox