This is an archive of the discontinued LLVM Phabricator instance.

[MinGW, CrossWindows] Allow passing -static together with -shared
ClosedPublic

Authored by mstorsjo on Feb 27 2018, 1:27 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Feb 27 2018, 1:27 AM
rnk accepted this revision.Feb 27 2018, 10:08 AM

This means, link the CRT and other default libraries statically, but give me a DLL, right? Just confirming.

This revision is now accepted and ready to land.Feb 27 2018, 10:08 AM
In D43811#1020847, @rnk wrote:

This means, link the CRT and other default libraries statically, but give me a DLL, right? Just confirming.

Exactly - for all libraries linked where you have the choice of both dynamic and static, pick the static one. (In mingw, you can't link the CRT statically though, so that, and any windows system dlls will still be linked dynamically.)

This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.