From a2f88b45de0dc76c801bf6a9fc315a85ed3b2abe Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 16 Oct 2020 08:43:20 +0200 Subject: [PATCH] package/kismet: link with libatomic if needed Fix build of kismet-2020-09-R3 with riscv64 Fixes: - http://autobuild.buildroot.org/results/9c3d56ef837c7c5bfbb34a0ec51b349108e201b1 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/kismet/kismet.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/kismet/kismet.mk b/package/kismet/kismet.mk index 723ce9c02b..4fc96e76c3 100644 --- a/package/kismet/kismet.mk +++ b/package/kismet/kismet.mk @@ -27,6 +27,10 @@ endif KISMET_CONF_ENV += CXXFLAGS="$(KISMET_CXXFLAGS)" +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +KISMET_CONF_ENV += LIBS=-latomic +endif + ifeq ($(BR2_PACKAGE_LIBCAP),y) KISMET_DEPENDENCIES += libcap KISMET_CONF_OPTS += --enable-libcap