From 04cabd17eaef29043b854cbda8ca6ab96cc3ac59 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 5 Jun 2025 09:12:32 +0200 Subject: [PATCH] Disable some deprecation warnings on rhel, boost generates a tonne of them Signed-off-by: Otto Moerbeek --- builder-support/specs/pdns-recursor.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.2