Codebase list openssl / b6f18d3
Configure: make C++ build tests optional and configurable Disabled by default Fixes #8360 Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8370) (cherry picked from commit ac4033d658e4dc210ed4552b88069b57532ba3d7) Richard Levitte 4 years ago
3 changed file(s) with 12 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
77 release branch.
88
99 Changes between 1.1.1b and 1.1.1c [xx XXX xxxx]
10
11 *) Added build tests for C++. These are generated files that only do one
12 thing, to include one public OpenSSL head file each. This tests that
13 the public header files can be usefully included in a C++ application.
14
15 This test isn't enabled by default. It can be enabled with the option
16 'enable-buildtest-c++'.
17 [Richard Levitte]
1018
1119 *) Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
1220 This changes the size when using the genpkey app when no size is given. It
331331 "autoload-config",
332332 "bf",
333333 "blake2",
334 "buildtest-c++",
334335 "camellia",
335336 "capieng",
336337 "cast",
431432
432433 our %disabled = ( # "what" => "comment"
433434 "asan" => "default",
435 "buildtest-c++" => "default",
434436 "crypto-mdebug" => "default",
435437 "crypto-mdebug-backtrace" => "default",
436438 "devcryptoeng" => "default",
11661168 foreach my $what (sort keys %disabled) {
11671169 $config{options} .= " no-$what";
11681170
1169 if (!grep { $what eq $_ } ( 'threads', 'shared', 'pic',
1171 if (!grep { $what eq $_ } ( 'buildtest-c++', 'threads', 'shared', 'pic',
11701172 'dynamic-engine', 'makedepend',
11711173 'zlib-dynamic', 'zlib', 'sse2' )) {
11721174 (my $WHAT = uc $what) =~ s|-|_|g;
584584 INCLUDE[buildtest_c_$name]=../include
585585 DEPEND[buildtest_c_$name]=../libssl ../libcrypto
586586 _____
587 $OUT .= <<"_____" if $config{CXX};
587 $OUT .= <<"_____" if $config{CXX} && !$disabled{"buildtest-c++"};
588588
589589 PROGRAMS_NO_INST=buildtest_cc_$name
590590 SOURCE[buildtest_cc_$name]=buildtest_$name.cc