]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
apt: add -fno-strict-aliasing to CXXFLAGS to fix SHA256 bug
authorRalph Siemsen <ralph.siemsen@linaro.org>
Fri, 15 Apr 2022 00:12:28 +0000 (14:12 -1000)
committerSteve Sakoman <steve@sakoman.com>
Mon, 18 Apr 2022 22:12:55 +0000 (12:12 -1000)
commitdc61dfd7791976c70c93e0d253a8fdbd40d27f3b
treeff36086e0f1182d492b2b60bf7d5fcd4c2232174
parent3e88c663e65fbc1b2e77a8616af4371224ed0ca5
apt: add -fno-strict-aliasing to CXXFLAGS to fix SHA256 bug

Recently we've begun seeing issues with apt SHA256 generation/checking on some
distros (fedora 35, alma 8). The version of apt in dunfell uses its own
SHA256 code, not a standard library.

Investigation reveals that the issue is related to -fstrict-aliasing enabled by
-O2 optimization, so turn it off with -fno-strict-aliasing

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/apt/apt.inc