[Buildroot] [PATCH 1/1] package/tor: add libatomic linkage when available
Bernd Kuhls
bernd.kuhls at t-online.de
Sun Jun 17 19:00:07 UTC 2018
Fixes
http://autobuild.buildroot.net/results/b79/b7915df77ae58448830e8e515c0fd642f3348611/
Signed-off-by: Bernd Kuhls <bernd.kuhls at 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
More information about the buildroot
mailing list