[project @ 2002-07-12 17:20:57 by sof]
authorsof <unknown>
Fri, 12 Jul 2002 17:20:57 +0000 (17:20 +0000)
committersof <unknown>
Fri, 12 Jul 2002 17:20:57 +0000 (17:20 +0000)
mkdll: in installed mode, invoke the 'dllwrap' that's distributed with GHC,
and feed it the right options.

Merge to STABLE.

ghc/compiler/main/SysTools.lhs

index a108c9e..83d833c 100644 (file)
@@ -352,7 +352,11 @@ initSysTools minusB_args
        ; let split_path  = perl_path ++ " \"" ++ split_script ++ "\""
              mangle_path = perl_path ++ " \"" ++ mangle_script ++ "\""
 
-       ; let mkdll_path = cMKDLL
+       ; let mkdll_path 
+               | am_installed = pgmPath (installed "gcc-lib/") cMKDLL ++
+                                " --dlltool-name " ++ pgmPath (installed "gcc-lib/") "dlltool" ++
+                                " --driver-name " ++ gcc_path
+               | otherwise    = cMKDLL
 #else
        --              UNIX-SPECIFIC STUFF
        -- On Unix, the "standard" tools are assumed to be