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.
This commit is contained in:
Mathieu Boespflug 2016-02-10 23:33:42 +01:00
parent 9771bc5226
commit 1ce7d20a37

View File

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