diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-02-10 23:38:46 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-02-10 23:47:39 +0000 |
commit | d74781e680bee416a48c648df1f8c6000da84e4d (patch) | |
tree | 02ed7dbfcf743d54b2a0dffd33796f52be54fca0 /sys-libs/glibc/glibc-2.29.ebuild | |
parent | toolchain-glibc.eclass: disable stack protector on m68k (diff) | |
download | gentoo-d74781e680bee416a48c648df1f8c6000da84e4d.tar.gz gentoo-d74781e680bee416a48c648df1f8c6000da84e4d.tar.bz2 gentoo-d74781e680bee416a48c648df1f8c6000da84e4d.zip |
sys-libs/glibc: disable stack protector on m68k
setjmp() clobbers 'a5' register by stack protector prologue.
Bug: https://sourceware.org/PR24202
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-libs/glibc/glibc-2.29.ebuild')
-rw-r--r-- | sys-libs/glibc/glibc-2.29.ebuild | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys-libs/glibc/glibc-2.29.ebuild b/sys-libs/glibc/glibc-2.29.ebuild index 3089cdbb5f1a..4ac98457b485 100644 --- a/sys-libs/glibc/glibc-2.29.ebuild +++ b/sys-libs/glibc/glibc-2.29.ebuild @@ -800,6 +800,11 @@ glibc_do_configure() { local myconf=() case ${CTARGET} in + m68k*) + # setjmp() is not compatible with stack protection: + # https://sourceware.org/PR24202 + myconf+=( --enable-stack-protector=no ) + ;; powerpc-*) # Currently gcc on powerpc32 generates invalid code for # __builtin_return_address(0) calls. Normally programs |