Commit db39fbf4 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Only add the extra Windows libraries if we are on Windows

parent f98b4dac
......@@ -8,6 +8,7 @@ import Distribution.Simple.Utils
import Distribution.Verbosity
import System.Cmd
import System.Environment
import System.Info
main :: IO ()
main = do args <- getArgs
......@@ -44,7 +45,8 @@ doit pref ghcpkg verbosity =
lbi <- getPersistBuildConfig
let -- XXX These are almighty hacks, shadowing the base
-- Setup.hs hacks
extraExtraLibs = if pkgName (package pd) == "base"
extraExtraLibs = if (os == "mingw32") &&
(pkgName (package pd) == "base")
then ["wsock32", "msvcrt", "kernel32",
"user32", "shell32"]
else []
......
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