Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/emacs/
Date: Sun, 10 Dec 2017 23:58:22
Message-Id: 1512950210.378170ef0a5bcc0c7511badf188575b7e6055ccc.ulm@gentoo
1 commit: 378170ef0a5bcc0c7511badf188575b7e6055ccc
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 10 23:52:34 2017 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 10 23:56:50 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=378170ef
7
8 app-editors/emacs: Fix Emacs 18 build failure with 17.0 profiles.
9
10 Adding -no-pie to LDFLAGS also does the trick for emacs-18.59.
11 Rearrange toolchain flag manipulation a bit.
12
13 Closes: https://bugs.gentoo.org/639562
14 Package-Manager: Portage-2.3.17, Repoman-2.3.6
15
16 app-editors/emacs/emacs-18.59-r11.ebuild | 8 +++++---
17 1 file changed, 5 insertions(+), 3 deletions(-)
18
19 diff --git a/app-editors/emacs/emacs-18.59-r11.ebuild b/app-editors/emacs/emacs-18.59-r11.ebuild
20 index c7a9e9dfa5d..8b9d3d2c04e 100644
21 --- a/app-editors/emacs/emacs-18.59-r11.ebuild
22 +++ b/app-editors/emacs/emacs-18.59-r11.ebuild
23 @@ -60,11 +60,13 @@ src_configure() {
24 src/s-linux.h || die
25
26 # -O3 and -finline-functions cause segmentation faults at run time.
27 - filter-flags -finline-functions
28 - replace-flags -O[3-9] -O2
29 + # -Wno-implicit will quieten GCC 5; feel free to submit a patch
30 + # adding all those missing prototypes.
31 strip-flags
32 - # Quieten GCC 5. Feel free to submit a patch adding all those prototypes.
33 + filter-flags -finline-functions -fpie
34 append-flags -Wno-implicit
35 + append-ldflags $(test-flags -no-pie) #639562
36 + replace-flags -O[3-9] -O2
37 }
38
39 src_compile() {