diff options
author | Simon Marlow <marlowsd@gmail.com> | 2018-12-07 23:25:40 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-12-07 23:25:41 -0500 |
commit | aa619f39e39b09b6da4585b40413adcf9d54fe46 (patch) | |
tree | fa6181979c3cabc00534b09728f53e89bcca3570 /compiler/main/SysTools/Info.hs | |
parent | 45e98f64e82f6ff16dc3e437c3031b9d315f1313 (diff) | |
download | haskell-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.hs | 4 |
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" |