dev-lang/ghc: do not persist '-no-pie' in ghc wrapper, bug #609624
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 18 Feb 2017 12:10:55 +0000 (12:10 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 18 Feb 2017 12:12:50 +0000 (12:12 +0000)
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
dev-lang/ghc/ghc-8.0.2.ebuild

index a963d059c61c836b17bcbf93cfd1412f3075e81f..40d8745f70747d51999d33d5a62af87cede17b64 100644 (file)
@@ -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
 
index 1b6e17272179dbb5844b17e225cda806a9d88fc0..79e0333ca9de33102852af6082e1119588de020a 100644 (file)
@@ -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: