Skip to content

Commit

Permalink
Merge pull request #80 from wumiaont/master
Browse files Browse the repository at this point in the history
Fix Compile Error Issues with Debian Bookworm Build
  • Loading branch information
kcudnik authored Feb 22, 2024
2 parents d1ca633 + 7406f4b commit d411109
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d411109

Please sign in to comment.