All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 1/2] package/libgit2: link with -latomic if needed
@ 2022-08-12 14:56 Nicolas Cavallari
  2022-08-12 14:56 ` [Buildroot] [PATCH v3 2/2] package/libgit2: bump to 1.5.0 Nicolas Cavallari
  2022-08-14 10:06 ` [Buildroot] [PATCH v3 1/2] package/libgit2: link with -latomic if needed Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: Nicolas Cavallari @ 2022-08-12 14:56 UTC (permalink / raw)
  To: buildroot

libgit2 is currently a library without any reverse dependencies so the
missing atomic symbols do not cause build failures yet.

libgit2 uses the atomics intrinsics on gcc >= 4.7 and the sync
intrinsics on previous gcc versions.  Since gcc 4.9 is the new
minimum, ignore the sync intrinsics requirements.

The next version of libgit2 will also build a binary, which will
expose the problem.

Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>

---
v3: first series with this patch
---
 package/libgit2/libgit2.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/libgit2/libgit2.mk b/package/libgit2/libgit2.mk
index 3f1e6e1593..9b5e2b897d 100644
--- a/package/libgit2/libgit2.mk
+++ b/package/libgit2/libgit2.mk
@@ -44,4 +44,9 @@ else
 LIBGIT2_CONF_OPTS += -DUSE_HTTPS=OFF
 endif
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+LIBGIT2_CONF_OPTS += \
+	-DCMAKE_SHARED_LINKER_FLAGS=-latomic
+endif
+
 $(eval $(cmake-package))
-- 
2.36.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-14 10:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-12 14:56 [Buildroot] [PATCH v3 1/2] package/libgit2: link with -latomic if needed Nicolas Cavallari
2022-08-12 14:56 ` [Buildroot] [PATCH v3 2/2] package/libgit2: bump to 1.5.0 Nicolas Cavallari
2022-08-14 10:07   ` Thomas Petazzoni via buildroot
2022-08-14 10:06 ` [Buildroot] [PATCH v3 1/2] package/libgit2: link with -latomic if needed Thomas Petazzoni via buildroot

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.