Don't use applink for static builds.
authorDr Stephen Henson <steve@openssl.org>
Tue, 8 Dec 2015 19:10:48 +0000 (19:10 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 9 Dec 2015 00:30:29 +0000 (00:30 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
util/pl/VC-32.pl

index 284fe0381ed9186ccb2588c0d392be5b61b424bf..0f5547f056c2bc8fc3daef0e6e4f3c52f31adcd3 100644 (file)
@@ -361,9 +361,13 @@ sub do_link_rule
        $ret.="$target: $files $dep_libs";
        if ($standalone == 1)
                {
-               $ret.=" \$(OBJ_D)${o}applink.obj\n";
+               $ret.=" \$(OBJ_D)${o}applink.obj" if $shlib;
+               $ret.="\n";
                $ret.="  \$(LINK) \$(LFLAGS) $efile$target @<<\n\t";
-               $ret.= "\$(EX_LIBS) \$(OBJ_D)${o}applink.obj " if ($files =~ /O_FIPSCANISTER/ && !$fipscanisterbuild);
+               if ($files =~ /O_FIPSCANISTER/ && !$fipscanisterbuild) {
+                       $ret.= "\$(EX_LIBS) ";
+                       $ret.= "\$(OBJ_D)${o}applink.obj " if $shlib;
+               }
                $ret.="$files $libs\n<<\n";
                }
        elsif ($standalone == 2)