From db39fbf447d14801fe8ee4555bf51990944865c4 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 4 Jun 2007 13:47:14 +0000 Subject: [PATCH] Only add the extra Windows libraries if we are on Windows --- libraries/installPackage.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/installPackage.hs b/libraries/installPackage.hs index d42bf8c..14069e8 100644 --- a/libraries/installPackage.hs +++ b/libraries/installPackage.hs @@ -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 [] -- 1.7.10.4