summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-06-11 21:39:05 +0100
committerSam James <sam@gentoo.org>2022-06-25 22:39:23 +0100
commit7e5859b42a87364c116f50c2c4c6be42ffaba1a9 (patch)
tree0c72bc355d3b786a1a807a550eabce250c602b81 /profiles/arch/amd64/package.use
parentnet-libs/libtorrent-rasterbar: drop 1.2.15-r1, 1.2.16, 2.0.5 (diff)
downloadgentoo-7e5859b42a87364c116f50c2c4c6be42ffaba1a9.tar.gz
gentoo-7e5859b42a87364c116f50c2c4c6be42ffaba1a9.tar.bz2
gentoo-7e5859b42a87364c116f50c2c4c6be42ffaba1a9.zip
profiles: Mask glibc[stack-realign] on non-amd64/x86, default on amd64
The stack alignment issue affecting compatibility with older 32-bit binaries is specific to amd64 and x86. The workaround incurs a performance cost on the 32-bit build, so enable the flag by default on amd64 but not on x86. Other popular distributions always enable this workaround. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'profiles/arch/amd64/package.use')
-rw-r--r--profiles/arch/amd64/package.use7
1 files changed, 6 insertions, 1 deletions
diff --git a/profiles/arch/amd64/package.use b/profiles/arch/amd64/package.use
index a51accc1910e..7b827e562200 100644
--- a/profiles/arch/amd64/package.use
+++ b/profiles/arch/amd64/package.use
@@ -1,6 +1,11 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+# James Le Cuirot <chewi@gentoo.org> (2022-06-25)
+# Realign the stack in the 32-bit build for compatibility with older binaries by
+# default. This is not the default on x86 because it has a performance cost.
+sys-libs/glibc stack-realign
+
# Ben Kohler <bkohler@gentoo.org> (2022-06-07)
# Enable BIOS & UEFI targets by default
sys-apps/memtest86+ bios64 efi64