commit:     c007515ecb55f7791845c59a3b49bd7ee8aa792f
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 12:10:55 2017 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Feb 18 12:12:50 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c007515e

dev-lang/ghc: do not persist '-no-pie' in ghc wrapper, bug #609624

This fixes build failure of shared libraries on gcc-6.3.0
Reported-by: Helmut Jarausch
Bug: https://bugs.gentoo.org/609624

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-lang/ghc/ghc-7.10.3.ebuild | 2 +-
 dev-lang/ghc/ghc-8.0.2.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-lang/ghc/ghc-7.10.3.ebuild b/dev-lang/ghc/ghc-7.10.3.ebuild
index a963d059c6..40d8745f70 100644
--- a/dev-lang/ghc/ghc-7.10.3.ebuild
+++ b/dev-lang/ghc/ghc-7.10.3.ebuild
@@ -251,7 +251,7 @@ ghc_setup_cflags() {
                # gcc-6.3 has support for -no-pie upstream, but spelling 
differs from
                # gentoo-specific '-nopie'. We enable it in non-bootstrap to 
allow
                # hardened users try '-pie' in USE=ghcbootstrap mode.
-               append-ghc-cflags persistent compile link -no-pie
+               append-ghc-cflags compile link -no-pie
        fi
        gcc-specs-ssp && append-ghc-cflags persistent compile      
-fno-stack-protector
 

diff --git a/dev-lang/ghc/ghc-8.0.2.ebuild b/dev-lang/ghc/ghc-8.0.2.ebuild
index 1b6e172721..79e0333ca9 100644
--- a/dev-lang/ghc/ghc-8.0.2.ebuild
+++ b/dev-lang/ghc/ghc-8.0.2.ebuild
@@ -243,7 +243,7 @@ ghc_setup_cflags() {
                # gcc-6.3 has support for -no-pie upstream, but spelling 
differs from
                # gentoo-specific '-nopie'. We enable it in non-bootstrap to 
allow
                # hardened users try '-pie' in USE=ghcbootstrap mode.
-               append-ghc-cflags persistent compile link -no-pie
+               append-ghc-cflags compile link -no-pie
        fi
 
        # prevent from failind building unregisterised ghc:

Reply via email to