[DHG_packages] 01/01: ghc: disable PIC on powerpc

Clint Adams clint at moszumanska.debian.org
Wed Oct 26 04:01:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

clint pushed a commit to branch experimental
in repository DHG_packages.

commit 0bcaca2a358ad6f1e7e19affbfea3607f37288f2
Author: Clint Adams <clint at debian.org>
Date:   Tue Oct 25 23:57:14 2016 -0400

    ghc: disable PIC on powerpc
---
 p/ghc/debian/changelog       |  6 ++++++
 p/ghc/debian/patches/opt-pic | 11 +++++------
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/p/ghc/debian/changelog b/p/ghc/debian/changelog
index 1f1b062..056eea4 100644
--- a/p/ghc/debian/changelog
+++ b/p/ghc/debian/changelog
@@ -1,3 +1,9 @@
+ghc (8.0.1-7) experimental; urgency=medium
+
+  * Disable PIC on powerpc.
+
+ -- Clint Adams <clint at debian.org>  Tue, 25 Oct 2016 23:56:41 -0400
+
 ghc (8.0.1-6) experimental; urgency=medium
 
   * Patch GHC to pass `-no-pie' along with `-Wl,-r'.
diff --git a/p/ghc/debian/patches/opt-pic b/p/ghc/debian/patches/opt-pic
index ffb8492..db32e31 100644
--- a/p/ghc/debian/patches/opt-pic
+++ b/p/ghc/debian/patches/opt-pic
@@ -1,11 +1,9 @@
 --- a/compiler/main/DynFlags.hs
 +++ b/compiler/main/DynFlags.hs
-@@ -3629,16 +3629,7 @@ defaultFlags settings
-     where platform = sTargetPlatform settings
- 
+@@ -3631,14 +3631,8 @@
  default_PIC :: Platform -> [GeneralFlag]
--default_PIC platform =
--  case (platformOS platform, platformArch platform) of
+ default_PIC platform =
+   case (platformOS platform, platformArch platform) of
 -    (OSDarwin, ArchX86_64) -> [Opt_PIC]
 -    (OSOpenBSD, ArchX86_64) -> [Opt_PIC] -- Due to PIE support in
 -                                         -- OpenBSD since 5.3 release
@@ -14,7 +12,8 @@
 -                                         -- #10597 for more
 -                                         -- information.
 -    _                      -> []
-+default_PIC platform = [Opt_PIC]
++    (OSLinux, ArchPPC)     -> []
++    _                      -> [Opt_PIC]
  
  -- General flags that are switched on/off when other general flags are switched
  -- on

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list