summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/main/SysTools/Info.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/main/SysTools/Info.hs b/compiler/main/SysTools/Info.hs
index 6b310578ff..420a2bf27f 100644
--- a/compiler/main/SysTools/Info.hs
+++ b/compiler/main/SysTools/Info.hs
@@ -142,7 +142,9 @@ getLinkerInfo' dflags = do
return (GnuGold [Option "-Wl,--no-as-needed"])
| any ("LLD" `isPrefixOf`) stdo =
- return (LlvmLLD [])
+ return (LlvmLLD $ map Option [
+ -- see Note [ELF needed shared libs]
+ "-Wl,--no-as-needed"])
-- Unknown linker.
| otherwise = fail "invalid --version output, or linker is unsupported"