Skip to content

Commit caed4ef

Browse files
committed
Fix compile issues with bookworm and openssl 3.0
1 parent d1ca633 commit caed4ef

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

debian/rules

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ include /usr/share/dpkg/default.mk
77

88
# The build system doesn't use CPPFLAGS, pass them to CFLAGS/CXXFLAGS to
99
# enable the missing (hardening) flags
10-
DEB_CFLAGS_MAINT_APPEND = -MMD -Wall $(shell dpkg-buildflags --get CPPFLAGS) -Wno-error=array-bounds $(warning WARNING: Building with -Wno-error=array-bounds)
10+
# Added no-deprecated-declarations use-after-free and no-discarded-qualifiers
11+
# to resolve the compile errors with bookworm. There are deprecated APIs with
12+
# openssl 3.0 which are used by wpa supplicant. We can remove those flags when
13+
# there are solutions ready.
14+
DEB_CFLAGS_MAINT_APPEND = -MMD -Wall $(shell dpkg-buildflags --get CPPFLAGS) -Wno-error=array-bounds $(warning WARNING: Building with -Wno-error=array-bounds) \
15+
-Wno-deprecated-declarations $(warning WARNING: Building with -Wno-deprecated-declarations) \
16+
-Wno-use-after-free $(warning WARNING: Building with -Wno-use-after-free) \
17+
-Wno-discarded-qualifiers $(warning WARNING: Building with -Wno-discarded-qualifiers)
1118
DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS)
1219
DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
1320
export DEB_CFLAGS_MAINT_APPEND DEB_CXXFLAGS_MAINT_APPEND DEB_LDFLAGS_MAINT_APPEND

0 commit comments

Comments
 (0)