]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Disable some deprecation warnings on rhel, boost generates a tonne of them
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 5 Jun 2025 07:12:32 +0000 (09:12 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 5 Jun 2025 07:28:41 +0000 (09:28 +0200)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
builder-support/specs/pdns-recursor.spec

index 885e05d25839759a8cb33879875e4e6ed8641d06..b97c11efec822c5307da73bdfb96d8431e45a3df 100644 (file)
@@ -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