Don't install fips_standalone_sha1.exe if it isn't being built
authorDr. Stephen Henson <steve@openssl.org>
Wed, 23 May 2012 00:39:01 +0000 (00:39 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 23 May 2012 00:39:01 +0000 (00:39 +0000)
util/mk1mf.pl

index 70b176c872dbb3ec885137dd8e112d97ec69ddb7..e2e9ffd086e8185cf39415262a51d96015922e72 100755 (executable)
@@ -576,9 +576,14 @@ if ($fipscanisteronly)
        \$(CP) \"fips${o}fips_premain.c.sha1\" \"\$(INSTALLTOP)${o}lib\"
        \$(CP) \"\$(INCO_D)${o}fips.h\" \"\$(INSTALLTOP)${o}include${o}openssl\"
        \$(CP) \"\$(INCO_D)${o}fips_rand.h\" \"\$(INSTALLTOP)${o}include${o}openssl\"
-       \$(CP) "\$(BIN_D)${o}fips_standalone_sha1$exep" \"\$(INSTALLTOP)${o}bin\"
        \$(CP) \"util${o}fipslink.pl\" \"\$(INSTALLTOP)${o}bin\"
 EOF
+       if ($fips_sha1_exe_build)
+               {
+               $extra_install .= <<"EOF";
+       \$(CP) "\$(BIN_D)${o}fips_standalone_sha1$exep" \"\$(INSTALLTOP)${o}bin\"
+EOF
+               }
        }
 elsif ($shlib)
        {