From: Tanzinul Islam Date: Sat, 7 Nov 2020 13:13:34 +0000 (+0000) Subject: Move VS Tools configuration to VC-common target X-Git-Tag: openssl-3.0.0-alpha15~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23f3242ffe8613411714eb9350275371059c7bfe;p=thirdparty%2Fopenssl.git 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) --- diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf index 1da5c5f0d04..3c569814aeb 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 9529bbfe5c8..f8509feb39c 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",