Skip to content

Commit

Permalink
dev-lang/ghc: do not persist '-no-pie' in ghc wrapper, bug #609624
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Sergei Trofimovich committed Feb 18, 2017
1 parent 8cee49e commit c007515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-lang/ghc/ghc-7.10.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion dev-lang/ghc/ghc-8.0.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c007515

Please sign in to comment.