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.
commit1ce7d20a3761d381609a182f68b6506950f0b818
authorMathieu Boespflug <m@tweag.io>
dateWed 10 Feb 2016, 23:33 (11 years ago)
parent9771bc5
debian-bootstrap.sh+6
@@ -114,3 +114,9 @@ mkdir -p /usr/lib/x86_64-linux-gnu/
114114ln -sfv /usr/lib/libnettle.so.6.1 /usr/lib/x86_64-linux-gnu/libnettle.so.6
115115)
116116rm -rf /tmp/nettle-build
117+
118+# Buggy versions of ld.bfd fail to link some Haskell packages:
119+# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
120+# faster anyways and uses less RAM.
121+update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
122+update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10