New comment by r-ricci on void-packages repository https://github.com/void-linux/void-packages/pull/50396#issuecomment-2118407708 Comment: > I'm don't think `armv7.patch` is necessary anymore. Correct. > Also I'm not sure why some of parts of `build_flags.patch` are necessary (package works fine without the entire patch), but I updated it anyway. There are certain build flags (specified in various parts of the `common/environment` subdirectory of void-packages) which we want to always use when building all packages. Good build systems should append the project's flags to the ones specified in environment variables such as `CFLAGS`, `CXXFLAGS`, `LDFLAGS` etc. But 7zip's build system is a huge mess with hardcoded values which doesn't respect the environment. You can see that by removing the patch and looking at the build log, some flags such as `-fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe` are no longer passed.