[DHG_packages] 01/01: ghc: use my Ubuntu arm64 bfd linker patch

Gianfranco Costamagna locutusofborg at moszumanska.debian.org
Sat Aug 26 13:22:53 UTC 2017


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

locutusofborg pushed a commit to branch master
in repository DHG_packages.

commit b769c159a8cf4a2a49cf0327e1adb88849594345
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Sat Aug 26 15:21:41 2017 +0200

    ghc: use my Ubuntu arm64 bfd linker patch
---
 p/ghc/debian/changelog             |  7 +++++++
 p/ghc/debian/patches/arm64-no-gold | 32 ++++++++++++++++++++++----------
 2 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/p/ghc/debian/changelog b/p/ghc/debian/changelog
index 7d5fe3e..c5eb4dc 100644
--- a/p/ghc/debian/changelog
+++ b/p/ghc/debian/changelog
@@ -1,3 +1,10 @@
+ghc (8.0.2-8) unstable; urgency=high
+
+  * Team upload
+  * Try arm64 with my Ubuntu patch.
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Sat, 26 Aug 2017 10:54:27 +0200
+
 ghc (8.0.2-7) unstable; urgency=medium
 
   * Only apply arm64 linker patch on arm64, to avoid conflict with
diff --git a/p/ghc/debian/patches/arm64-no-gold b/p/ghc/debian/patches/arm64-no-gold
index 31ffe84..2f5d465 100644
--- a/p/ghc/debian/patches/arm64-no-gold
+++ b/p/ghc/debian/patches/arm64-no-gold
@@ -1,14 +1,26 @@
---- a/aclocal.m4
-+++ b/aclocal.m4
-@@ -591,10 +591,7 @@
-         ;;
- 
-     aarch64*linux*)
--        # On aarch64/linux and aarch64/android, tell gcc to link using the
--        # gold linker.
--        # Forcing LD to be ld.gold is done in FIND_LD m4 macro.
+Description: Use BFD on arm64, because the new binutils seems to be not able to link it anymore
+Author: Gianfranco Costamagna <locutusofborg at debian.org>
+
+Last-Update: 2017-07-02
+
+--- ghc-8.0.2.orig/aclocal.m4
++++ ghc-8.0.2/aclocal.m4
+@@ -594,7 +594,7 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
+         # On aarch64/linux and aarch64/android, tell gcc to link using the
+         # gold linker.
+         # Forcing LD to be ld.gold is done in FIND_LD m4 macro.
 -        $3="$$3 -fuse-ld=gold -Wl,-z,noexecstack"
-+        # gold is an abomination
++        $3="$$3 -fuse-ld=bfd -Wl,-z,noexecstack"
          $4="$$4 -z noexecstack"
          ;;
  
+@@ -2043,8 +2043,7 @@ AC_DEFUN([FIND_LLVM_PROG],[
+ AC_DEFUN([FIND_LD],[
+     FP_ARG_WITH_PATH_GNU_PROG([LD], [ld], [ld])
+     case $target in
+-        arm*linux*       | \
+-        aarch64*linux*   )
++        arm*linux*)
+             # Arm and Aarch64 requires use of the binutils ld.gold linker.
+             # This case should catch at least arm-unknown-linux-gnueabihf,
+             # arm-linux-androideabi, arm64-unknown-linux and

-- 
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