Ugly hack to make sure static libraries are usable. Without this,
authorRichard Levitte <levitte@openssl.org>
Thu, 21 Sep 2000 15:16:20 +0000 (15:16 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 21 Sep 2000 15:16:20 +0000 (15:16 +0000)
anything that just links with libeay32.lib or libssl32.lib will get an
error saying the __imp__RegQueryValueEx is unresolved.

The right thing would really be to fix crypto/rand/rand_win.c to load
ADVAPI32.DLL dynamically, but that won't be done just before a
release.

util/pl/VC-32.pl

index 046f0e253c3971a373fda65357a74cd7c4e3388a..6978104234a95f4c159e6bd59360bda504ccae40 100644 (file)
@@ -112,7 +112,8 @@ sub do_lib_rule
        if (!$shlib)
                {
 #              $ret.="\t\$(RM) \$(O_$Name)\n";
-               $ret.="\t\$(MKLIB) $lfile$target @<<\n  $objs\n<<\n";
+               $ex =' advapi32.lib';
+               $ret.="\t\$(MKLIB) $lfile$target @<<\n  $objs $ex\n<<\n";
                }
        else
                {