Skip to content

Commit

Permalink
more Win64 DLL support
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Oct 12, 2012
1 parent 1cf1b01 commit 3601727
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/glue.c
Expand Up @@ -662,7 +662,6 @@ void FuncDeclaration::toObjFile(int multiobj)
{
objmod->includelib("LIBCMT");
objmod->includelib("OLDNAMES");
objmod->ehsections(); // initialize exception handling sections
}
else
{
Expand Down
6 changes: 6 additions & 0 deletions src/link.c
Expand Up @@ -172,6 +172,12 @@ int runLINK()
cmdbuf.writestring("/DEBUG");
}

if (global.params.dll)
{
cmdbuf.writeByte(' ');
cmdbuf.writestring("/DLL");
}

cmdbuf.writestring(" /MERGE:.minfobg=.minfodt /MERGE:.minfoen=.minfodt");
cmdbuf.writestring(" /MERGE:._deh_bg=._deh_eh /MERGE:._deh_en=._deh_eh");

Expand Down

0 comments on commit 3601727

Please sign in to comment.