gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: meson: add libpthread detection


From: gnunet
Subject: [gnunet] branch master updated: meson: add libpthread detection
Date: Fri, 08 Dec 2023 18:29:30 +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 0cb289c5b meson: add libpthread detection
0cb289c5b is described below

commit 0cb289c5bd00abd92e028e8b6fdbd19ff624e031
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Fri Dec 8 18:29:26 2023 +0100

    meson: add libpthread detection
---
 meson.build                        | 5 +++++
 src/service/meson.build            | 1 +
 src/service/zonemaster/meson.build | 1 +
 3 files changed, 7 insertions(+)

diff --git a/meson.build b/meson.build
index 1173fcd36..408a88e58 100644
--- a/meson.build
+++ b/meson.build
@@ -221,6 +221,11 @@ else
   endif
 endif
 
+pthread_dep = cc.find_library('pthread', required : false)
+if pthread_dep.found()
+  add_project_arguments('-DHAVE_PTHREAD', language : 'c')
+endif
+
 m_dep = cc.find_library('m', required : false)
 if m_dep.found()
   add_project_arguments('-DHAVE_LIBM', language : 'c')
diff --git a/src/service/meson.build b/src/service/meson.build
index fcd3f7520..cd886ed2e 100644
--- a/src/service/meson.build
+++ b/src/service/meson.build
@@ -60,6 +60,7 @@ libgnunet = library('gnunet',
                                    libgnunetgnsrecordjson_dep,
                                    jose_dep,
                                    m_dep,
+                                   pthread_dep,
                                    libgnunetcurl_dep],
                     c_args: ['-DHAVE_GNUNET_MONOLITH=1'],
                     include_directories: [incdir, configuration_inc, exitdir])
diff --git a/src/service/zonemaster/meson.build 
b/src/service/zonemaster/meson.build
index 92333ac8d..6145c608e 100644
--- a/src/service/zonemaster/meson.build
+++ b/src/service/zonemaster/meson.build
@@ -19,6 +19,7 @@ executable ('gnunet-service-zonemaster',
                            libgnunetutil_dep,
                            libgnunetdht_dep,
                            libgnunetidentity_dep,
+                           pthread_dep,
                            libgnunetstatistics_dep,
                            libgnunetnamecache_dep,
                            libgnunetnamestore_dep,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]