From: Otto Moerbeek Date: Thu, 5 Jun 2025 07:12:32 +0000 (+0200) Subject: Disable some deprecation warnings on rhel, boost generates a tonne of them X-Git-Tag: dnsdist-2.0.0-beta1~52^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04cabd17eaef29043b854cbda8ca6ab96cc3ac59;p=thirdparty%2Fpdns.git Disable some deprecation warnings on rhel, boost generates a tonne of them Signed-off-by: Otto Moerbeek --- diff --git a/builder-support/specs/pdns-recursor.spec b/builder-support/specs/pdns-recursor.spec index 885e05d258..b97c11efec 100644 --- a/builder-support/specs/pdns-recursor.spec +++ b/builder-support/specs/pdns-recursor.spec @@ -82,7 +82,8 @@ export LDFLAGS="-fuse-ld=lld -Wl,--build-id=sha1" %define stack_clash_protection -fstack-clash-protection %endif export CFLAGS="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables %{stack_clash_protection} %{cf_protection} -gdwarf-4" -export CXXFLAGS="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables %{stack_clash_protection} %{cf_protection} -gdwarf-4" +# Adding -Wno-deprecated-declarations -Wno-deprecated-builtins as boost genertates tonnes of warnings +export CXXFLAGS="-O2 -g -pipe -Wall -Wno-deprecated-declarations -Wno-deprecated-builtins -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables %{stack_clash_protection} %{cf_protection} -gdwarf-4" %endif # Note that the RPM meson macro "helpfully" sets