Fix from stable branch.
[openssl.git] / util / pl / VC-32.pl
index 334a53f70b5155df52edd940cd67b3fcfd8cd7f8..285b04b2e3cd8ce87fdf8bdc32f6c7432c951184 100644 (file)
@@ -92,7 +92,7 @@ if ($shlib)
        {
        $mlflags.=" $lflags /dll";
 #      $cflags =~ s| /MD| /MT|;
-       $lib_cflag=" -D_WINDLL -D_DLL";
+       $lib_cflag=" -D_WINDLL";
        $out_def="out32dll";
        $tmp_def="tmp32dll";
        }
@@ -118,7 +118,7 @@ sub do_lib_rule
        else
                {
                local($ex)=($target =~ /O_SSL/)?' $(L_CRYPTO)':'';
-               $ex.=' wsock32.lib gdi32.lib advapi32.lib';
+               $ex.=' wsock32.lib gdi32.lib advapi32.lib user32.lib';
                $ret.="\t\$(LINK) \$(MLFLAGS) $efile$target /def:ms/${Name}.def @<<\n  \$(SHLIB_EX_OBJ) $objs $ex\n<<\n";
                }
        $ret.="\n";