Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libcurl: link with -latomic if needed
@ 2022-07-10  7:07 Bernd Kuhls
  2022-07-18 10:21 ` Thomas Petazzoni via buildroot
  2022-08-10 15:32 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2022-07-10  7:07 UTC (permalink / raw)
  To: buildroot; +Cc: Matt Weber

Fixes build error:

/nvmedata/autobuild/instance-1/output-1/host/lib/gcc/microblazeel-buildroot-linux-uclibc/10.3.0/../../../../microblazeel-buildroot-linux-uclibc/bin/ld:
 ../lib/.libs/libcurl.a(libcurl_la-easy.o): in function `curl_simple_lock_lock':
(.text+0x46c): undefined reference to `__atomic_exchange_1'

Fixes:
http://autobuild.buildroot.net/results/1ed/1eddc48f24ab766cfc880c493ed9b230fc57bc09/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/libcurl/libcurl.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index e241bd1c88..5dc4eebefa 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -32,6 +32,10 @@ else
 LIBCURL_CONF_OPTS += --disable-threaded-resolver
 endif
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+LIBCURL_CONF_OPTS += LIBS=-latomic
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCURL_VERBOSE),y)
 LIBCURL_CONF_OPTS += --enable-verbose
 else
-- 
2.30.2

_______________________________________________
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/libcurl: link with -latomic if needed
  2022-07-10  7:07 [Buildroot] [PATCH 1/1] package/libcurl: link with -latomic if needed Bernd Kuhls
@ 2022-07-18 10:21 ` Thomas Petazzoni via buildroot
  2022-08-10 15:32 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-07-18 10:21 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: Matt Weber, buildroot

On Sun, 10 Jul 2022 09:07:04 +0200
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:

> Fixes build error:
> 
> /nvmedata/autobuild/instance-1/output-1/host/lib/gcc/microblazeel-buildroot-linux-uclibc/10.3.0/../../../../microblazeel-buildroot-linux-uclibc/bin/ld:
>  ../lib/.libs/libcurl.a(libcurl_la-easy.o): in function `curl_simple_lock_lock':
> (.text+0x46c): undefined reference to `__atomic_exchange_1'
> 
> Fixes:
> http://autobuild.buildroot.net/results/1ed/1eddc48f24ab766cfc880c493ed9b230fc57bc09/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/libcurl/libcurl.mk | 4 ++++
>  1 file changed, 4 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
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/libcurl: link with -latomic if needed
  2022-07-10  7:07 [Buildroot] [PATCH 1/1] package/libcurl: link with -latomic if needed Bernd Kuhls
  2022-07-18 10:21 ` Thomas Petazzoni via buildroot
@ 2022-08-10 15:32 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-08-10 15:32 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: Matt Weber, buildroot

>>>>> "Bernd" == Bernd Kuhls <bernd.kuhls@t-online.de> writes:

 > Fixes build error:
 > /nvmedata/autobuild/instance-1/output-1/host/lib/gcc/microblazeel-buildroot-linux-uclibc/10.3.0/../../../../microblazeel-buildroot-linux-uclibc/bin/ld:
 >  ../lib/.libs/libcurl.a(libcurl_la-easy.o): in function `curl_simple_lock_lock':
 > (.text+0x46c): undefined reference to `__atomic_exchange_1'

 > Fixes:
 > http://autobuild.buildroot.net/results/1ed/1eddc48f24ab766cfc880c493ed9b230fc57bc09/

 > Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Committed to 2022.05.x and 2022.02.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:[~2022-08-10 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-10  7:07 [Buildroot] [PATCH 1/1] package/libcurl: link with -latomic if needed Bernd Kuhls
2022-07-18 10:21 ` Thomas Petazzoni via buildroot
2022-08-10 15:32 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox