[Pkg-haskell-commits] darcs: ghc: Try using ld.gold on arm.

Joachim Breitner mail at joachim-breitner.de
Fri Nov 28 22:16:25 UTC 2014


Fri Nov 28 21:24:00 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Try using ld.gold on arm. 

    M ./changelog +6
    M ./rules -1 +9

Fri Nov 28 21:24:00 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Try using ld.gold on arm. 
diff -rN -u old-ghc/changelog new-ghc/changelog
--- old-ghc/changelog	2014-11-28 22:16:25.262149795 +0000
+++ new-ghc/changelog	2014-11-28 22:16:25.290149795 +0000
@@ -1,3 +1,9 @@
+ghc (7.8.20141119-4) UNRELEASED; urgency=medium
+
+  * Try using ld.gold on arm. 
+
+ -- Joachim Breitner <nomeata at debian.org>  Fri, 28 Nov 2014 22:14:49 +0100
+
 ghc (7.8.20141119-3) experimental; urgency=medium
 
   * Explicitly call opt-3.4, and avoid the generic opt command.
diff -rN -u old-ghc/rules new-ghc/rules
--- old-ghc/rules	2014-11-28 22:16:25.262149795 +0000
+++ new-ghc/rules	2014-11-28 22:16:25.286149795 +0000
@@ -42,6 +42,13 @@
     MAKEFLAGS += -j$(NUMJOBS)
 endif
 
+ifneq (,$(findstring $(DEB_HOST_ARCH),arm64 armel armhf))
+        LINKER = ld.gold
+else
+        LINKER = ld.bfd
+endif
+
+
 autoreconf:
 	autoreconf -fi
 	for c_g in $$(find -type f -name config.guess); do \
@@ -91,6 +98,7 @@
 	# also on arm: https://bugs.debian.org/751479
 	echo "GhcWithInterpreter = NO" >> mk/build.mk
 endif
+
 	
 	# We can't do this with a configure flag in 6.8.1 as libdir is not
 	# defined at the point at which we := it
@@ -113,7 +121,7 @@
 	./configure $(confflags) --prefix=/usr \
 		$(EXTRA_CONFIGURE_FLAGS) \
 		--with-system-libffi \
-		--with-ld=ld.bfd \
+		--with-ld=$(LINKER) \
 		--with-llc=llc-3.4 \
 		--with-opt=opt-3.4
 




More information about the Pkg-haskell-commits mailing list