From: Fred Morcos Date: Thu, 4 Apr 2024 14:04:07 +0000 (+0200) Subject: Meson: Fix lmdb-safe needs gettime X-Git-Tag: rec-5.1.0-alpha1~57^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14035%2Fhead;p=thirdparty%2Fpdns.git Meson: Fix lmdb-safe needs gettime --- diff --git a/ext/lmdb-safe/meson.build b/ext/lmdb-safe/meson.build index d65a9627db..54e09fb69d 100644 --- a/ext/lmdb-safe/meson.build +++ b/ext/lmdb-safe/meson.build @@ -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( diff --git a/meson.build b/meson.build index f617821c5d..b7f48622a4 100644 --- a/meson.build +++ b/meson.build @@ -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',