diff options
author | Sam James <sam@gentoo.org> | 2021-03-17 23:26:12 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2021-03-22 09:57:44 +0100 |
commit | d6abfc2b87604431291c7dd04a4a33b23a420366 (patch) | |
tree | 3e5466fedae30422ece094affcb20e9bcaa91e72 /sys-libs | |
parent | sys-libs/zlib-ng: revbump for forthcoming changes, cosmetic bits (diff) | |
download | gentoo-d6abfc2b87604431291c7dd04a4a33b23a420366.tar.gz gentoo-d6abfc2b87604431291c7dd04a4a33b23a420366.tar.bz2 gentoo-d6abfc2b87604431291c7dd04a4a33b23a420366.zip |
sys-libs/zlib-ng: disable unaligned access
We've discussed this in the past for sys-libs/zlib and we've avoided
enabling it there for now, although e.g. Debian did at the last time
I checked.
It's undefined behaviour and risky, even where it does (appear to) work
on e.g. amd64.
See: https://github.com/gentoo/gentoo/pull/17167
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/zlib-ng/zlib-ng-2.0.1-r1.ebuild | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-libs/zlib-ng/zlib-ng-2.0.1-r1.ebuild b/sys-libs/zlib-ng/zlib-ng-2.0.1-r1.ebuild index bb16ca91c101..5fd01079542f 100644 --- a/sys-libs/zlib-ng/zlib-ng-2.0.1-r1.ebuild +++ b/sys-libs/zlib-ng/zlib-ng-2.0.1-r1.ebuild @@ -28,6 +28,10 @@ src_configure() { local mycmakeargs=( -DZLIB_COMPAT="$(usex compat)" -DZLIB_ENABLE_TESTS="$(usex test)" + # Unaligned access is controversial and undefined behaviour + # Let's keep it off for now + # https://github.com/gentoo/gentoo/pull/17167 + -DWITH_UNALIGNED="OFF" ) cmake_src_configure } |