* [Buildroot] [PATCH 1/1] package/snort3: link with -latomic if needed
@ 2021-08-21 15:41 Fabrice Fontaine
2021-08-23 21:40 ` Arnout Vandecappelle
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-08-21 15:41 UTC (permalink / raw)
To: buildroot; +Cc: Sergio Prado, Fabrice Fontaine
Fix the following build failure raised since bump to version 3.1.6
in commit e66f2fd310374779d415fa683813cc5f5ccf6be9 and
https://github.com/snort3/snort3/commit/3e518d86040e74c328bcc0d5bbd49c1da6b7a3ec:
/home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/powerpc-buildroot-linux-uclibc/9.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: service_inspectors/dce_rpc/CMakeFiles/dce_rpc.dir/dce_smb2_file.cc.o: undefined reference to symbol '__atomic_load_8@@LIBATOMIC_1.0'
Fixes:
- http://autobuild.buildroot.org/results/df34a69175e61bc7b180d89c738747e19aaf13bf
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/snort3/snort3.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/snort3/snort3.mk b/package/snort3/snort3.mk
index aabc89e165..7495ab9b0f 100644
--- a/package/snort3/snort3.mk
+++ b/package/snort3/snort3.mk
@@ -54,4 +54,9 @@ else
SNORT3_CONF_OPTS += -DHAVE_LZMA=OFF
endif
+# Uses __atomic_load_8
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+SNORT3_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
+endif
+
$(eval $(cmake-package))
--
2.32.0
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/snort3: link with -latomic if needed
2021-08-21 15:41 [Buildroot] [PATCH 1/1] package/snort3: link with -latomic if needed Fabrice Fontaine
@ 2021-08-23 21:40 ` Arnout Vandecappelle
0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2021-08-23 21:40 UTC (permalink / raw)
To: Fabrice Fontaine, buildroot; +Cc: Sergio Prado
On 21/08/2021 17:41, Fabrice Fontaine wrote:
> Fix the following build failure raised since bump to version 3.1.6
> in commit e66f2fd310374779d415fa683813cc5f5ccf6be9 and
> https://github.com/snort3/snort3/commit/3e518d86040e74c328bcc0d5bbd49c1da6b7a3ec:
>
> /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/powerpc-buildroot-linux-uclibc/9.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: service_inspectors/dce_rpc/CMakeFiles/dce_rpc.dir/dce_smb2_file.cc.o: undefined reference to symbol '__atomic_load_8@@LIBATOMIC_1.0'
>
> Fixes:
> - http://autobuild.buildroot.org/results/df34a69175e61bc7b180d89c738747e19aaf13bf
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> package/snort3/snort3.mk | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/package/snort3/snort3.mk b/package/snort3/snort3.mk
> index aabc89e165..7495ab9b0f 100644
> --- a/package/snort3/snort3.mk
> +++ b/package/snort3/snort3.mk
> @@ -54,4 +54,9 @@ else
> SNORT3_CONF_OPTS += -DHAVE_LZMA=OFF
> endif
>
> +# Uses __atomic_load_8
> +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
> +SNORT3_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
> +endif
> +
> $(eval $(cmake-package))
>
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-23 21:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21 15:41 [Buildroot] [PATCH 1/1] package/snort3: link with -latomic if needed Fabrice Fontaine
2021-08-23 21:40 ` Arnout Vandecappelle
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.