diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-03-28 12:08:01 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2022-04-04 03:33:58 -0400 |
commit | 517ddff9b685d57475b63d73bab6bb623c24cd76 (patch) | |
tree | 31bc9a42329f9a5c5eb8242f0d7185e6c53761d8 /compiler/GHC/Settings/IO.hs | |
parent | edbfea66d149a056640a5f7e358234171e67a4ee (diff) | |
download | haskell-wip/object-merging-via-archives.tar.gz |
Build ar archives with -L when "joining" objectswip/object-merging-via-archives
Since there may be .o files which are in fact archives.
Diffstat (limited to 'compiler/GHC/Settings/IO.hs')
-rw-r--r-- | compiler/GHC/Settings/IO.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/GHC/Settings/IO.hs b/compiler/GHC/Settings/IO.hs index 08e60776a3..8e23706410 100644 --- a/compiler/GHC/Settings/IO.hs +++ b/compiler/GHC/Settings/IO.hs @@ -96,6 +96,7 @@ initSettings top_dir = do ldSupportsBuildId <- getBooleanSetting "ld supports build-id" ldSupportsFilelist <- getBooleanSetting "ld supports filelist" ldIsGnuLd <- getBooleanSetting "ld is GNU ld" + arSupportsDashL <- getBooleanSetting "ar supports -L" let globalpkgdb_path = installed "package.conf.d" ghc_usage_msg_path = installed "ghc-usage.txt" @@ -167,6 +168,7 @@ initSettings top_dir = do , toolSettings_ldIsGnuLd = ldIsGnuLd , toolSettings_ccSupportsNoPie = gccSupportsNoPie , toolSettings_useInplaceMinGW = useInplaceMinGW + , toolSettings_arSupportsDashL = arSupportsDashL , toolSettings_pgm_L = unlit_path , toolSettings_pgm_P = (cpp_prog, cpp_args) |