[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: build: hopefully finally correctly fix l
From: |
gnunet |
Subject: |
[gnunet] branch master updated: build: hopefully finally correctly fix libatomic detection for older toolchains |
Date: |
Sun, 12 Jan 2025 12:57:04 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 47637f6dc build: hopefully finally correctly fix libatomic detection
for older toolchains
47637f6dc is described below
commit 47637f6dc3089191899600974c3926c401fdaac4
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun Jan 12 12:56:40 2025 +0100
build: hopefully finally correctly fix libatomic detection for older
toolchains
---
configure.ac | 7 ++++++-
src/lib/util/Makefile.am | 1 +
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index a9e8c00ca..220608685 100644
--- a/configure.ac
+++ b/configure.ac
@@ -757,7 +757,12 @@ AS_IF([test "x$nss" = "xfalse"],
[[#include <nss.h>]])])
# libatomic
-AC_SEARCH_LIBS([__atomic_load_8], [atomic])
+AC_SEARCH_LIBS([__atomic_load_8], [atomic], [
+ AS_IF([test x$ac_cv_search___atomic_load_8 != "xnone required"],
+ [ATOMICLIB=$ac_cv_search___atomic_load_8], [ATOMICLIB=])
+ AC_SUBST([ATOMICLIB])
+ ], [AC_MSG_ERROR([No library found that provides __atomic_load_8()])
+])
# test for kvm and kstat (for CPU stats under BSD/Solaris)
AC_CHECK_LIB([kvm], [kvm_open])
diff --git a/src/lib/util/Makefile.am b/src/lib/util/Makefile.am
index 54f8a4e2e..88add66d3 100644
--- a/src/lib/util/Makefile.am
+++ b/src/lib/util/Makefile.am
@@ -137,6 +137,7 @@ libgnunetutil_la_LIBADD = \
-lunistring \
-lsodium \
-lgmp \
+ $(ATOMICLIB) \
$(XLIB) \
$(PTHREAD)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: build: hopefully finally correctly fix libatomic detection for older toolchains,
gnunet <=