From 1ce7d20a3761d381609a182f68b6506950f0b818 Mon Sep 17 00:00:00 2001 From: Mathieu Boespflug Date: Wed, 10 Feb 2016 23:33:42 +0100 Subject: [PATCH] Use the Gold linker rather than the default ld.bfd. This works around bug https://sourceware.org/bugzilla/show_bug.cgi?id=17689, which causes ld.bfd to fail to successfully link some Haskell packages. --- debian-bootstrap.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian-bootstrap.sh b/debian-bootstrap.sh index fbf596ff..25b6a675 100755 --- a/debian-bootstrap.sh +++ b/debian-bootstrap.sh @@ -114,3 +114,9 @@ mkdir -p /usr/lib/x86_64-linux-gnu/ ln -sfv /usr/lib/libnettle.so.6.1 /usr/lib/x86_64-linux-gnu/libnettle.so.6 ) rm -rf /tmp/nettle-build + +# Buggy versions of ld.bfd fail to link some Haskell packages: +# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is +# faster anyways and uses less RAM. +update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 +update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10