Fix no-tests on mingw
authorMatt Caswell <matt@openssl.org>
Fri, 19 Feb 2021 15:57:01 +0000 (15:57 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 22 Feb 2021 12:21:33 +0000 (12:21 +0000)
Using the no-tests option on mingw in an out-of-source build tree was
failing.

Fixes #14246

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14249)

Configurations/unix-Makefile.tmpl

index b2abee23e6f9160f5132458ae5ebd3d89b8a4faf..16d4337dabdf6fcc6f135cb075a186825e0794ed 100644 (file)
@@ -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