* [Buildroot] [PATCH 1/1] package/libmemcached: link with -latomic when needed
@ 2023-12-03 8:02 Fabrice Fontaine
2023-12-03 16:20 ` Peter Korsgaard
2023-12-03 21:31 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2023-12-03 8:02 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix the following build failure raised since bump to version 1.1.4 in
commit 7205df8a4f3c729b11a5f0c34885e6cf592f24b9:
/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/11.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: CMakeFiles/aslap.dir/ms_conn.c.o: undefined reference to symbol '__atomic_fetch_add_4@@LIBATOMIC_1.0'
Fixes:
- http://autobuild.buildroot.org/results/c8e4e1f9609d1339fe070afe440c63660892600e
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/libmemcached/libmemcached.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/libmemcached/libmemcached.mk b/package/libmemcached/libmemcached.mk
index f64ab5ec48..f86cdd3bbf 100644
--- a/package/libmemcached/libmemcached.mk
+++ b/package/libmemcached/libmemcached.mk
@@ -32,4 +32,8 @@ else
LIBMEMCACHED_CONF_OPTS += -DENABLE_OPENSSL_CRYPTO=OFF
endif
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+LIBMEMCACHED_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
+endif
+
$(eval $(cmake-package))
--
2.42.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libmemcached: link with -latomic when needed
2023-12-03 8:02 [Buildroot] [PATCH 1/1] package/libmemcached: link with -latomic when needed Fabrice Fontaine
@ 2023-12-03 16:20 ` Peter Korsgaard
2023-12-03 21:31 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-12-03 16:20 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure raised since bump to version 1.1.4 in
> commit 7205df8a4f3c729b11a5f0c34885e6cf592f24b9:
> /home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/11.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
> CMakeFiles/aslap.dir/ms_conn.c.o: undefined reference to symbol
> '__atomic_fetch_add_4@@LIBATOMIC_1.0'
> Fixes:
> - http://autobuild.buildroot.org/results/c8e4e1f9609d1339fe070afe440c63660892600e
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libmemcached: link with -latomic when needed
2023-12-03 8:02 [Buildroot] [PATCH 1/1] package/libmemcached: link with -latomic when needed Fabrice Fontaine
2023-12-03 16:20 ` Peter Korsgaard
@ 2023-12-03 21:31 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-12-03 21:31 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure raised since bump to version 1.1.4 in
> commit 7205df8a4f3c729b11a5f0c34885e6cf592f24b9:
> /home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/11.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
> CMakeFiles/aslap.dir/ms_conn.c.o: undefined reference to symbol
> '__atomic_fetch_add_4@@LIBATOMIC_1.0'
> Fixes:
> - http://autobuild.buildroot.org/results/c8e4e1f9609d1339fe070afe440c63660892600e
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.08.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-03 21:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-03 8:02 [Buildroot] [PATCH 1/1] package/libmemcached: link with -latomic when needed Fabrice Fontaine
2023-12-03 16:20 ` Peter Korsgaard
2023-12-03 21:31 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox