From: Matt Caswell Date: Fri, 19 Feb 2021 15:57:01 +0000 (+0000) Subject: Fix no-tests on mingw X-Git-Tag: openssl-3.0.0-alpha13~237 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f16f363a85baa6338744e20671c5a227844f2847;p=thirdparty%2Fopenssl.git Fix no-tests on mingw Using the no-tests option on mingw in an out-of-source build tree was failing. Fixes #14246 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/14249) --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index b2abee23e6f..16d4337dabd 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -1561,12 +1561,16 @@ EOF if (windowsdll()) { $recipe .= <<"EOF"; rm -f apps/$full - rm -f test/$full rm -f fuzz/$full cp -p $full apps/ - cp -p $full test/ cp -p $full fuzz/ EOF + if (!$disabled{tests}) { + $recipe .= <<"EOF"; + rm -f test/$full + cp -p $full test/ +EOF + } } $recipe .= <<"EOF" if defined $argfile; $argfile: $argfiledeps