mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
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:
parent
9771bc5226
commit
1ce7d20a37
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user