aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Driver/ToolChains/CrossWindows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/ToolChains/CrossWindows.cpp')
-rw-r--r--lib/Driver/ToolChains/CrossWindows.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains/CrossWindows.cpp b/lib/Driver/ToolChains/CrossWindows.cpp
index 5049033c4137..6ca04a8a3abb 100644
--- a/lib/Driver/ToolChains/CrossWindows.cpp
+++ b/lib/Driver/ToolChains/CrossWindows.cpp
@@ -127,7 +127,8 @@ void tools::CrossWindows::Linker::ConstructJob(
}
CmdArgs.push_back("-shared");
- CmdArgs.push_back("-Bdynamic");
+ CmdArgs.push_back(Args.hasArg(options::OPT_static) ? "-Bstatic"
+ : "-Bdynamic");
CmdArgs.push_back("--enable-auto-image-base");