New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/30036#issuecomment-815391671 Comment: I think assigning to `CXXFLAGS` in `pre_build` overrides build flags, including `-O2`. The behavior should be more consistent if you do `CXXFLAGS+=...` in `pre_build`.