package/kismet: link with libatomic if needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 16 Oct 2020 06:43:20 +0000 (08:43 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 17 Oct 2020 16:22:46 +0000 (18:22 +0200)
Fix build of kismet-2020-09-R3 with riscv64

Fixes:
 - http://autobuild.buildroot.org/results/9c3d56ef837c7c5bfbb34a0ec51b349108e201b1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/kismet/kismet.mk

index 723ce9c02be88a7fe146bec596077acf971581c6..4fc96e76c31102d907e9e89a07ac64f234a1c39c 100644 (file)
@@ -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