package/frr: link with latomic if needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 27 Sep 2020 12:58:33 +0000 (14:58 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 30 Sep 2020 20:53:58 +0000 (22:53 +0200)
Fixes:
 - http://autobuild.buildroot.org/results/c98/c989f58eabd8f012798ade75e5b0f2a93b91c82d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/frr/frr.mk

index a77afb52e4a40839830c0826bb515b645baaa0e9..6beaf776ac69cbe68358f674b625addad123c7f1 100644 (file)
@@ -32,6 +32,10 @@ FRR_CONF_OPTS = --with-clippy=$(HOST_DIR)/bin/clippy \
 
 HOST_FRR_CONF_OPTS = --enable-clippy-only
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+FRR_CONF_ENV += LIBS=-latomic
+endif
+
 define HOST_FRR_INSTALL_CMDS
        $(INSTALL) -D -m 0755 $(@D)/lib/clippy $(HOST_DIR)/bin/clippy
 endef