Skip to contentSkip to conversation

package/suricata: link with libatomic if needed

PATCH New Fabrice Fontaine 2 participants 2 messages Nov 12, 2020 – Nov 13, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/suricata: link with libatomic if needed

Fix build of suricata 6.0.0 with mips32r6

app-layer-ftp.o: In function `FTPCheckMemcap':
app-layer-ftp.c:(.text+0x284): undefined reference to __atomic_load_8' app-layer-ftp.c:(.text+0x2d8): undefined reference to __atomic_fetch_add_8'

Fixes:
- http://autobuild.buildroot.org/results/f574005204905250702df32b61c85d427ab4feda

---
 package/suricata/suricata.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/suricata/suricata.mk +4 -0
index f131fad1be..94c4784dd4 100644
@@ -43,6 +43,10 @@ SURICATA_CONF_OPTS = \
 #               download through wget/curl)
 SURICATA_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install install-conf
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+SURICATA_CONF_ENV += LIBS=-latomic
+endif
+
 ifeq ($(BR2_PACKAGE_FILE),y)
 SURICATA_DEPENDENCIES += file
 SURICATA_CONF_OPTS += --enable-libmagic
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/1 package/suricata: link with libatomic if needed

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Fix build of suricata 6.0.0 with mips32r6
app-layer-ftp.o: In function `FTPCheckMemcap':
app-layer-ftp.c:(.text+0x284): undefined reference to __atomic_load_8' app-layer-ftp.c:(.text+0x2d8): undefined reference to __atomic_fetch_add_8'

Fixes:
- http://autobuild.buildroot.org/results/f574005204905250702df32b61c85d427ab4feda

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard