From 23f3242ffe8613411714eb9350275371059c7bfe Mon Sep 17 00:00:00 2001 From: Tanzinul Islam Date: Sat, 7 Nov 2020 13:13:34 +0000 Subject: Move VS Tools configuration to VC-common target The Windows toolchain is composed of utilites from both the Windows SDK and the Visual Studio Build Tools. Move the configuration of the latter utilities into the `VC-common` template inside `10-main.conf`, while leaving the former utilities in `BASE_Windows`. This allows for other Windows compilers to be configured inheriting from `BASE_Windows`. Reviewed-by: Richard Levitte Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/13540) --- Configurations/00-base-templates.conf | 6 ------ Configurations/10-main.conf | 7 ++++++- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'Configurations') diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf index 1da5c5f0d0..3c569814ae 100644 --- a/Configurations/00-base-templates.conf +++ b/Configurations/00-base-templates.conf @@ -108,12 +108,6 @@ my %targets=( return (); }, - LD => "link", - LDFLAGS => "/nologo", - ldoutflag => "/out:", - AR => "lib", - ARFLAGS => "/nologo", - aroutflag => "/out:", RC => "rc", rcoutflag => "/fo", MT => "mt", diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf index 9529bbfe5c..f8509feb39 100644 --- a/Configurations/10-main.conf +++ b/Configurations/10-main.conf @@ -1277,8 +1277,13 @@ my %targets = ( CC => "cl", CPP => '$(CC) /EP /C', CFLAGS => "/W3 /wd4090 /nologo", - LDFLAGS => add("/debug"), coutflag => "/Fo", + LD => "link", + LDFLAGS => "/nologo /debug", + ldoutflag => "/out:", + AR => "lib", + ARFLAGS => "/nologo", + aroutflag => "/out:", defines => add("OPENSSL_SYS_WIN32", "WIN32_LEAN_AND_MEAN", "UNICODE", "_UNICODE", "_CRT_SECURE_NO_DEPRECATE", -- cgit v1.2.3