From: Ben.Lippmeier@anu.edu.au Date: Wed, 18 Nov 2009 09:01:05 +0000 (+0000) Subject: Windows DLLs: stifle more warnings about auto imported symbols X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=f205ce857a8d1cebeffe39233978b2bda9d33572 Windows DLLs: stifle more warnings about auto imported symbols --- diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index ed3fc54..9ed55d7 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1608,6 +1608,11 @@ linkDynLib dflags o_files dep_packages = do ++ map (SysTools.FileOption "") o_files ++ map SysTools.Option ( md_c_flags + + -- 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"] + ++ extra_ld_inputs ++ lib_path_opts ++ extra_ld_opts