]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Fix lmdb-safe needs gettime 14035/head
authorFred Morcos <fred.morcos@open-xchange.com>
Thu, 4 Apr 2024 14:04:07 +0000 (16:04 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Thu, 4 Apr 2024 14:04:07 +0000 (16:04 +0200)
ext/lmdb-safe/meson.build
meson.build

index d65a9627db967bdbfe55c701dcca979e678e103f..54e09fb69d9b4c4244a528a2b2da404bf1e3e275 100644 (file)
@@ -6,7 +6,12 @@ lib_lmdb_safe = static_library(
     'lmdb-safe.hh',
     'lmdb-typed.hh',
   ],
-  dependencies: [dep_pdns, dep_lmdb, dep_boost_serialization],
+  dependencies: [
+    dep_pdns,
+    dep_lmdb,
+    dep_boost_serialization,
+    libpdns_gettime,
+  ],
 )
 
 dep_lmdb_safe = declare_dependency(
index f617821c5d4e0438fe19c4f9192e0563cfe2dada..b7f48622a4fa5fb7af057c3a4d334e5166240a1e 100644 (file)
@@ -95,6 +95,16 @@ subdir('ext' / 'json11')
 subdir('ext' / 'luawrapper')
 subdir('ext' / 'protozero')
 subdir('ext' / 'yahttp')
+
+libpdns_gettime = declare_dependency(
+  link_whole: static_library(
+    'pdns-gettime',
+    src_dir / 'gettime.cc',
+    src_dir / 'gettime.hh',
+    dependencies: dep_rt,
+  )
+)
+
 if get_option('module-lmdb') != 'disabled'
   subdir('ext' / 'lmdb-safe')
 endif
@@ -323,15 +333,6 @@ if dep_sqlite3.found()
   )
 endif
 
-libpdns_gettime = declare_dependency(
-  link_whole: static_library(
-    'pdns-gettime',
-    src_dir / 'gettime.cc',
-    src_dir / 'gettime.hh',
-    dependencies: dep_rt,
-  )
-)
-
 libpdns_signers_openssl = declare_dependency(
   link_whole: static_library(
     'pdns-signers-openssl',