Commit 020bb30e authored by Ben.Lippmeier@anu.edu.au's avatar Ben.Lippmeier@anu.edu.au
Browse files

Windows DLLs: stifle warnings about symbols being auto imported from DLLs

parent 0e7562e8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment