Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/tor: add libatomic linkage when available
@ 2018-06-17 19:00 Bernd Kuhls
  2018-06-17 19:51 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2018-06-17 19:00 UTC (permalink / raw)
  To: buildroot

Fixes
http://autobuild.buildroot.net/results/b79/b7915df77ae58448830e8e515c0fd642f3348611/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
Bug occurs also with tor-0.3.3.7 which was used to test this fix.

 package/tor/tor.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/tor/tor.mk b/package/tor/tor.mk
index 39006e7caf..eba2130669 100644
--- a/package/tor/tor.mk
+++ b/package/tor/tor.mk
@@ -26,6 +26,11 @@ TOR_CONF_OPTS += \
 	--enable-static-zlib
 endif
 
+# Uses __atomic_fetch_add_4 and __atomic_fetch_sub_4
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+TOR_CONF_OPTS += LIBS=-latomic
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCAP),y)
 TOR_DEPENDENCIES += libcap
 endif
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/tor: add libatomic linkage when available
  2018-06-17 19:00 [Buildroot] [PATCH 1/1] package/tor: add libatomic linkage when available Bernd Kuhls
@ 2018-06-17 19:51 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-06-17 19:51 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 17 Jun 2018 21:00:07 +0200, Bernd Kuhls wrote:

> +# Uses __atomic_fetch_add_4 and __atomic_fetch_sub_4
> +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
> +TOR_CONF_OPTS += LIBS=-latomic
> +endif

We already have https://patchwork.ozlabs.org/patch/929615/ pending.

Though as usual, I'd prefer to have a solution that can be contributed
upstream.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-17 19:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-17 19:00 [Buildroot] [PATCH 1/1] package/tor: add libatomic linkage when available Bernd Kuhls
2018-06-17 19:51 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox