aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/cc/msvc.txt4
-rw-r--r--src/build-data/makefile/header.in1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/build-data/cc/msvc.txt b/src/build-data/cc/msvc.txt
index 1bb7454ba..854edb60d 100644
--- a/src/build-data/cc/msvc.txt
+++ b/src/build-data/cc/msvc.txt
@@ -1,6 +1,7 @@
macro_name MSVC
binary_name cl
+linker_name link
compile_option "/nologo /c "
output_to_option "/Fo"
@@ -36,7 +37,8 @@ rdrand -> ""
</isa_flags>
<so_link_flags>
-default -> "$(CXX) /LD"
+default -> "$(LINKER) /DLL"
+default-debug -> "$(LINKER) /DLL /DEBUG"
</so_link_flags>
<mach_abi_linking>
diff --git a/src/build-data/makefile/header.in b/src/build-data/makefile/header.in
index d821361f6..a83184bb8 100644
--- a/src/build-data/makefile/header.in
+++ b/src/build-data/makefile/header.in
@@ -1,5 +1,6 @@
# Compiler Options
CXX = %{cxx}
+LINKER = %{linker}
LIB_OPT = %{lib_opt}
APP_OPT = %{app_opt}
LANG_FLAGS = %{lang_flags}