Remove crypt32.lib from C++Builder configuration
authorTanzinul Islam <tanzinul.islam@gmail.com>
Mon, 14 Dec 2020 23:31:49 +0000 (23:31 +0000)
committerDmitry Belyavskiy <beldmit@gmail.com>
Mon, 19 Apr 2021 09:05:55 +0000 (11:05 +0200)
`import32.lib` serves the purpose for most Windows API libraries, including this one. For example, with a GNU `grep` utility:

>tdump %BDS%\lib\win32c\release\import32.lib | grep -B 3 -A 1 CertOpenStore
171E32 COMENT  Purge: Yes, List: Yes, Class: 160 (0A0h), SubClass: 1 (01h)
    Dynamic link import (IMPDEF)
      Imported by: name
      Internal Name: CertOpenStore
      Module Name: CRYPT32.dll

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/13540)

Configurations/50-cppbuilder.conf

index 0b3b70db92cf7d012e06156a863edf84a06ba281..1c47a4c2be1b625896167a44f16c9ae9ef5a872f 100644 (file)
@@ -34,7 +34,7 @@ my %targets = (
                            ($disabled{shared}
                             ? ($disabled{threads} ? "cw32.lib" : "cw32mt.lib")
                             : ($disabled{threads} ? "cw32i.lib" : "cw32mti.lib")));
-            push @ex_libs, ("crypt32.lib", "ws2_32.lib") unless $disabled{sock};
+            push @ex_libs, "ws2_32.lib" unless $disabled{sock};
             return join(" ", @ex_libs);
         }),
         AR               => "tlib",