Skip to contentSkip to conversation

package/frr: link with latomic if needed

PATCH New Fabrice Fontaine 2 participants 2 messages Sep 27, 2020 – Sep 30, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/frr: link with latomic if needed

Fixes:
- http://autobuild.buildroot.org/results/c98/c989f58eabd8f012798ade75e5b0f2a93b91c82d

---
 package/frr/frr.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/frr/frr.mk +4 -0
index a77afb52e4..6beaf776ac 100644
@@ -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
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/1 package/frr: link with latomic if needed

Quoted 7 lines · On Sun, 27 Sep 2020 14:58:33 +0200 Fabrice Fontaine…

Fixes:
- http://autobuild.buildroot.org/results/c98/c989f58eabd8f012798ade75e5b0f2a93b91c82d

---
 package/frr/frr.mk | 4 ++++
 1 file changed, 4 insertions(+)

So I've applied, but it would be nicer to suggest to upstream to have a the proper configure.ac logic to link against libatomic when needed.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com