make --mk-dll work with --make
Submitted by: Esa Ilari Vuokko <eivuokko@gmail.com>, thanks!
<+> text "...")
-- Don't showPass in Batch mode; doLink will do that for us.
<+> text "...")
-- Don't showPass in Batch mode; doLink will do that for us.
- staticLink dflags obj_files pkg_deps
+ let link = case ghcLink dflags of
+ MkDLL -> doMkDLL
+ StaticLink -> staticLink
+ link dflags obj_files pkg_deps
debugTraceMsg dflags 3 (text "link: done")
debugTraceMsg dflags 3 (text "link: done")
<entry>mode</entry>
<entry>-</entry>
</row>
<entry>mode</entry>
<entry>-</entry>
</row>
- <row>
- <entry><option>--mk-dll</option></entry>
- <entry>DLL-creation mode (Windows only)</entry>
- <entry>dynamic</entry>
- <entry>-</entry>
- </row>
</tbody>
</tgroup>
</informaltable>
</tbody>
</tgroup>
</informaltable>
<entry>-</entry>
</row>
<row>
<entry>-</entry>
</row>
<row>
+ <entry><option>--mk-dll</option></entry>
+ <entry>DLL-creation mode (Windows only)</entry>
+ <entry>dynamic</entry>
+ <entry>-</entry>
+ </row>
+ <row>
<entry><option>-no-hs-main</option></entry>
<entry>Don't assume this program contains <literal>main</literal></entry>
<entry>dynamic</entry>
<entry><option>-no-hs-main</option></entry>
<entry>Don't assume this program contains <literal>main</literal></entry>
<entry>dynamic</entry>