diff options
author | Ben.Lippmeier@anu.edu.au <unknown> | 2009-11-18 05:15:26 +0000 |
---|---|---|
committer | Ben.Lippmeier@anu.edu.au <unknown> | 2009-11-18 05:15:26 +0000 |
commit | 020bb30ef435775bc87c51e186c09dd57fd39b92 (patch) | |
tree | 51137fe52d90764701d4084cb0757d412719d818 /compiler | |
parent | 0e7562e8783042a9a8d3e4e0220d87b0946cb816 (diff) | |
download | haskell-020bb30ef435775bc87c51e186c09dd57fd39b92.tar.gz |
Windows DLLs: stifle warnings about symbols being auto imported from DLLs
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/main/DriverPipeline.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index 042fa04091..ed3fc54e18 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1447,6 +1447,12 @@ linkBinary dflags o_files dep_packages = do ] ++ map SysTools.Option ( md_c_flags + +#ifdef mingw32_TARGET_OS + -- Permit the linker to auto link _symbol to _imp_symbol. + -- This lets us link against DLLs without needing an "import library". + ++ ["-Wl,--enable-auto-import"] +#endif ++ o_files ++ extra_ld_inputs ++ lib_path_opts |