Skip to contentSkip to conversation

package/tor: add libatomic linkage when available

PATCH New Bernd Kuhls 2 participants 2 messages Jun 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/tor: add libatomic linkage when available

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

---
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(+)
package/tor/tor.mk +5 -0
index 39006e7caf..eba2130669 100644
@@ -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
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 package/tor: add libatomic linkage when available

Hello,

package/tor/tor.mk TOR_CONF_OPTS += \ · line 32

Quoted 4 lines · Bernd Kuhls
package/tor/tor.mk +4 -0
+# 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

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