]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: allow building wth gcc8, which needs -lstdc++fs as link argument 16043/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 28 Aug 2025 08:15:16 +0000 (10:15 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 28 Aug 2025 08:15:16 +0000 (10:15 +0200)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/dnsdistdist/meson/compiler-setup/meson.build

index be76040b0ebe2eaa943820d08b63ed403018e6b8..1776003b72782e16f79fffad16813c2ab34bb382 100644 (file)
@@ -15,3 +15,8 @@ add_project_arguments(
 
 cxx = meson.get_compiler('cpp')
 system = target_machine.system()
+
+if cxx.get_id() == 'gcc' and cxx.version().version_compare('>=8.0,<9.0')
+  add_global_link_arguments('-lstdc++fs', language: ['c', 'cpp'])
+endif
+