diff --git a/debian/rules b/debian/rules index 681b857a3..c5ef6d6da 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,14 @@ include /usr/share/dpkg/default.mk # The build system doesn't use CPPFLAGS, pass them to CFLAGS/CXXFLAGS to # enable the missing (hardening) flags -DEB_CFLAGS_MAINT_APPEND = -MMD -Wall $(shell dpkg-buildflags --get CPPFLAGS) -Wno-error=array-bounds $(warning WARNING: Building with -Wno-error=array-bounds) +# Added no-deprecated-declarations use-after-free and no-discarded-qualifiers +# to resolve the compile errors with bookworm. There are deprecated APIs with +# openssl 3.0 which are used by wpa supplicant. We can remove those flags when +# there are solutions ready. +DEB_CFLAGS_MAINT_APPEND = -MMD -Wall $(shell dpkg-buildflags --get CPPFLAGS) -Wno-error=array-bounds $(warning WARNING: Building with -Wno-error=array-bounds) \ + -Wno-deprecated-declarations $(warning WARNING: Building with -Wno-deprecated-declarations) \ + -Wno-use-after-free $(warning WARNING: Building with -Wno-use-after-free) \ + -Wno-discarded-qualifiers $(warning WARNING: Building with -Wno-discarded-qualifiers) DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS) DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed export DEB_CFLAGS_MAINT_APPEND DEB_CXXFLAGS_MAINT_APPEND DEB_LDFLAGS_MAINT_APPEND