From: Otto Moerbeek Date: Thu, 28 Aug 2025 08:15:16 +0000 (+0200) Subject: dnsdist: allow building wth gcc8, which needs -lstdc++fs as link argument X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F16043%2Fhead;p=thirdparty%2Fpdns.git dnsdist: allow building wth gcc8, which needs -lstdc++fs as link argument Signed-off-by: Otto Moerbeek --- diff --git a/pdns/dnsdistdist/meson/compiler-setup/meson.build b/pdns/dnsdistdist/meson/compiler-setup/meson.build index be76040b0e..1776003b72 100644 --- a/pdns/dnsdistdist/meson/compiler-setup/meson.build +++ b/pdns/dnsdistdist/meson/compiler-setup/meson.build @@ -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 +