app-editors/emacs: Fix build failure with 17.0 profiles.
authorUlrich Müller <ulm@gentoo.org>
Sun, 10 Dec 2017 23:42:43 +0000 (00:42 +0100)
committerUlrich Müller <ulm@gentoo.org>
Sun, 10 Dec 2017 23:56:49 +0000 (00:56 +0100)
commit7b54f926721074aced28664f5d8080dbc3a1d674
tree55584e67d33bb12cfe843af7b624a64ae0c5445c
parent487553dac204b56f31db564fa72059c2bb68c9ea
app-editors/emacs: Fix build failure with 17.0 profiles.

The following comment from upstream is in configure.ac of emacs-25.3:
"-no-pie or -nopie fixes a temacs segfault on Gentoo, OpenBSD, Ubuntu,
and other systems with "hardened" GCC configurations for some reason
(Bug#18784).  We don't know why this works, but not segfaulting is
better than segfaulting."

Adding -no-pie to 23.4 and 24.5 appears to make them build, too.
Note that only append-ldflags fixes the build failure, while
append-flags does not (at least not for 23.4).

Thanks to Mats Lidell for pointing me to the above upstream comment.

Closes: https://bugs.gentoo.org/639568
Closes: https://bugs.gentoo.org/639570
Package-Manager: Portage-2.3.17, Repoman-2.3.6
app-editors/emacs/emacs-23.4-r16.ebuild
app-editors/emacs/emacs-24.5-r4.ebuild