diff options
author | Tanzinul Islam <tanzinul.islam@gmail.com> | 2020-11-19 23:39:12 +0000 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-04-19 11:05:54 +0200 |
commit | f1ee757daaf8ea1000c6558abd1ffc8ad5234c09 (patch) | |
tree | c42fa4d3b969eae561eff6ce12a39439a759730e /Configurations | |
parent | a8368d573e5b4553e7344dd37239da6d72480832 (diff) |
Resurrect and modernize C++Builder config
Similar configuration to what was deleted in 8e56a422, updated for the
unified build scheme. Use the [Clang-based `bcc32c.exe`][1] to avoid a
[bug][2] with the old one, and increase the `tlib.exe` page size to 256.
Also avoid MSVC-specific C runtime library functions.
[1]: http://docwiki.embarcadero.com/RADStudio/Sydney/en/Win32_Clang-enhanced_Compilers
[2]: https://quality.embarcadero.com/browse/RSP-31630
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/13540)
Diffstat (limited to 'Configurations')
-rw-r--r-- | Configurations/50-cppbuilder.conf | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Configurations/50-cppbuilder.conf b/Configurations/50-cppbuilder.conf new file mode 100644 index 0000000000..b8ecfdc7d3 --- /dev/null +++ b/Configurations/50-cppbuilder.conf @@ -0,0 +1,37 @@ +my %targets = ( + "BC-32" => { + inherit_from => [ "BASE_Windows" ], + sys_id => "WIN32", + bn_ops => "BN_LLONG", + dso_scheme => "win32", + thread_scheme => "winthreads", + cc => "bcc32c", + defines => add("WIN32_LEAN_AND_MEAN", "OPENSSL_SYS_WIN32", + "L_ENDIAN", "DSO_WIN32", "_stricmp=stricmp", + "_strnicmp=strnicmp", "_malloca=malloc", + "_freea=free", "_setmode=setmode"), + cflags => picker(default => "-q -c -tWC -tWM", + debug => "-Od -v -vi- -D_DEBUG", + release => "-O2"), + coutflag => "-o", + LD => "ilink32", + lflags => picker(default => "-ap -Tpe -x -Gn -q", + debug => '-j"$(BDS)\lib\win32c\debug" ' . + '-L"$(BDS)\lib\win32c\debug"', + release => '-j"$(BDS)\lib\win32c\release" ' . + '-L"$(BDS)\lib\win32c\release"'), + ldoutflag => ",", + ldpostoutflag => ",,", + ld_resp_delim => " +\n", + ld_wildcard_args => "wildargs.obj", + ex_libs => add(sub { + my @ex_libs = (); + push @ex_libs, ("cw32mt.lib", "import32.lib", "crypt32.lib", + "ws2_32.lib") unless $disabled{sock}; + return join(" ", @ex_libs); + }), + AR => "tlib", + ARFLAGS => "/P256 /N /u", + ar_resp_delim => " &\n", + } +); |