Skip to contentSkip to conversation

package/elfutils: link with libatomic if needed

PATCH New Fabrice Fontaine 3 participants 3 messages Feb 21, 2021 – Mar 5, 2021

lore
Share & tools
lore
#0 lore raw

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

Fix build of elfutils 0.181 with Bootlin SPARC uclibc toolchain added with commit 1348c569d0cb7f67eca30f170b782aa8b51cc259

Fixes:
- http://autobuild.buildroot.org/results/31ce9e3861c6229a7869a15d322f5d2f5bfc6165

---
 package/elfutils/elfutils.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/elfutils/elfutils.mk +4 -0
index 3d37c4634b..42f2f8b304 100644
@@ -43,6 +43,10 @@ ELFUTILS_CONF_ENV += \
 ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) \
 	$(TARGET_NLS_LIBS)
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+ELFUTILS_LDFLAGS += -latomic
+endif
+
 ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
 ELFUTILS_DEPENDENCIES += musl-fts
 ELFUTILS_LDFLAGS += -lfts
Signature · 1 line
2.30.0
#1 lore raw

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

Fabrice, All,

On 2021-02-21 21:29 +0100, Fabrice Fontaine spake thusly:

Quoted 7 lines

Fix build of elfutils 0.181 with Bootlin SPARC uclibc toolchain added with commit 1348c569d0cb7f67eca30f170b782aa8b51cc259

Fixes:
- http://autobuild.buildroot.org/results/31ce9e3861c6229a7869a15d322f5d2f5bfc6165

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 26 lines
---
 package/elfutils/elfutils.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/elfutils/elfutils.mk +4 -0
index 3d37c4634b..42f2f8b304 100644
@@ -43,6 +43,10 @@ ELFUTILS_CONF_ENV += \
 ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) \
 	$(TARGET_NLS_LIBS)
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+ELFUTILS_LDFLAGS += -latomic
+endif
+
 ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
 ELFUTILS_DEPENDENCIES += musl-fts
 ELFUTILS_LDFLAGS += -lfts
Signature · 6 lines
2.30.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

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

In reply to Fabrice Fontaine
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

Fix build of elfutils 0.181 with Bootlin SPARC uclibc toolchain added with commit 1348c569d0cb7f67eca30f170b782aa8b51cc259

Fixes:
- http://autobuild.buildroot.org/results/31ce9e3861c6229a7869a15d322f5d2f5bfc6165

Committed to 2020.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard