summaryrefslogtreecommitdiff
path: root/compiler/main/SysTools/Info.hs
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2018-12-07 23:25:40 -0500
committerBen Gamari <ben@smart-cactus.org>2018-12-07 23:25:41 -0500
commitaa619f39e39b09b6da4585b40413adcf9d54fe46 (patch)
treefa6181979c3cabc00534b09728f53e89bcca3570 /compiler/main/SysTools/Info.hs
parent45e98f64e82f6ff16dc3e437c3031b9d315f1313 (diff)
downloadhaskell-aa619f39e39b09b6da4585b40413adcf9d54fe46.tar.gz
Use --no-as-needed with LLD too
Test Plan: validate using LLD as the linker (TODO) Reviewers: bgamari, angerman, kavon, erikd Reviewed By: bgamari Subscribers: watashi, rwbarton, carter Differential Revision: https://phabricator.haskell.org/D5336
Diffstat (limited to 'compiler/main/SysTools/Info.hs')
-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"