Skip to content

Commit

Permalink
app-editors/emacs: Fix Emacs 18 build failure with 17.0 profiles.
Browse files Browse the repository at this point in the history
Adding -no-pie to LDFLAGS also does the trick for emacs-18.59.
Rearrange toolchain flag manipulation a bit.

Closes: https://bugs.gentoo.org/639562
Package-Manager: Portage-2.3.17, Repoman-2.3.6
  • Loading branch information
ulm committed Dec 10, 2017
1 parent 7b54f92 commit 378170e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app-editors/emacs/emacs-18.59-r11.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ src_configure() {
src/s-linux.h || die

# -O3 and -finline-functions cause segmentation faults at run time.
filter-flags -finline-functions
replace-flags -O[3-9] -O2
# -Wno-implicit will quieten GCC 5; feel free to submit a patch
# adding all those missing prototypes.
strip-flags
# Quieten GCC 5. Feel free to submit a patch adding all those prototypes.
filter-flags -finline-functions -fpie
append-flags -Wno-implicit
append-ldflags $(test-flags -no-pie) #639562
replace-flags -O[3-9] -O2
}

src_compile() {
Expand Down

0 comments on commit 378170e

Please sign in to comment.