In these combinations, link a DLL as usual, but pass -Bstatic instead of -Bdynamic to indicate prefering static libraries.
Details
Details
- Reviewers
compnerd smeenai rnk - Commits
- rGe15bb83e2649: Merging r326235:
rGca4a24eb72aa: [MinGW, CrossWindows] Allow passing -static together with -shared
rL333566: Merging r326235:
rC326235: [MinGW, CrossWindows] Allow passing -static together with -shared
rL326235: [MinGW, CrossWindows] Allow passing -static together with -shared
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This means, link the CRT and other default libraries statically, but give me a DLL, right? Just confirming.
Comment Actions
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.)