* [Buildroot] [PATCH 1/1] package/suricata: link with libatomic if needed
@ 2020-11-12 20:22 Fabrice Fontaine
2020-11-13 13:52 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2020-11-12 20:22 UTC (permalink / raw)
To: buildroot
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
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/suricata/suricata.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/suricata/suricata.mk b/package/suricata/suricata.mk
index f131fad1be..94c4784dd4 100644
--- a/package/suricata/suricata.mk
+++ b/package/suricata/suricata.mk
@@ -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
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/suricata: link with libatomic if needed
2020-11-12 20:22 [Buildroot] [PATCH 1/1] package/suricata: link with libatomic if needed Fabrice Fontaine
@ 2020-11-13 13:52 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2020-11-13 13:52 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> 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
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-13 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12 20:22 [Buildroot] [PATCH 1/1] package/suricata: link with libatomic if needed Fabrice Fontaine
2020-11-13 13:52 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.