package/tor: add libatomic linkage when available
PATCH 1/1 package/tor: add libatomic linkage when available
Fixes
http://autobuild.buildroot.net/results/b79/b7915df77ae58448830e8e515c0fd642f3348611/
Signed-off-by Bernd Kuhls <[email protected]>
---
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
@@ -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
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