* [Buildroot] [PATCH 1/1] package/libdrm: link with libatomic
@ 2024-08-11 8:44 Bernd Kuhls
2024-08-12 20:04 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2024-08-11 8:44 UTC (permalink / raw)
To: buildroot
Link with libatomic if available.
Fixes:
http://autobuild.buildroot.net/results/7ab/7ab583edb135b4b6948fb47e598d1f74e81fea7d/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/libdrm/libdrm.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/libdrm/libdrm.mk b/package/libdrm/libdrm.mk
index ea956de15b..58d9c34617 100644
--- a/package/libdrm/libdrm.mk
+++ b/package/libdrm/libdrm.mk
@@ -26,6 +26,10 @@ LIBDRM_CFLAGS = $(TARGET_CFLAGS) -DAO_NO_SPARC_V9
endif
endif
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+LIBDRM_LDFLAGS = $(TARGET_LDFLAGS) -latomic
+endif
+
ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
LIBDRM_CONF_OPTS += -Dintel=enabled
LIBDRM_DEPENDENCIES += libpciaccess
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libdrm: link with libatomic
2024-08-11 8:44 [Buildroot] [PATCH 1/1] package/libdrm: link with libatomic Bernd Kuhls
@ 2024-08-12 20:04 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-12 20:04 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
On Sun, 11 Aug 2024 10:44:24 +0200
Bernd Kuhls <bernd@kuhls.net> wrote:
> Link with libatomic if available.
>
> Fixes:
> http://autobuild.buildroot.net/results/7ab/7ab583edb135b4b6948fb47e598d1f74e81fea7d/
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> package/libdrm/libdrm.mk | 4 ++++
> 1 file changed, 4 insertions(+)
Thanks, but this really should be handled by the libdrm build system
itself. It already has a bunch of logic related to atomic detection.
This really should be improved there. Perhaps report the issue upstream?
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] 2+ messages in thread
end of thread, other threads:[~2024-08-12 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-11 8:44 [Buildroot] [PATCH 1/1] package/libdrm: link with libatomic Bernd Kuhls
2024-08-12 20:04 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox