Provide better "make depend" warning.

Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
Rich Salz 2015-12-10 12:31:01 -05:00 committed by Rich Salz
parent a7a14a23a9
commit 2e31ef0366

View File

@ -108,6 +108,9 @@ my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare
# -Wextended-offsetof # -Wextended-offsetof
my $clang_devteam_warn = "-Wno-unused-parameter -Wno-missing-field-initializers -Wno-language-extension-token -Wno-extended-offsetof -Wconditional-uninitialized -Qunused-arguments -Wincompatible-pointer-types-discards-qualifiers -Wmissing-variable-declarations"; my $clang_devteam_warn = "-Wno-unused-parameter -Wno-missing-field-initializers -Wno-language-extension-token -Wno-extended-offsetof -Wconditional-uninitialized -Qunused-arguments -Wincompatible-pointer-types-discards-qualifiers -Wmissing-variable-declarations";
# Warn that "make depend" should be run?
my $warn_make_depend = 0;
# These are used in addition to $gcc_devteam_warn unless this is a mingw build. # These are used in addition to $gcc_devteam_warn unless this is a mingw build.
# This adds backtrace information to the memory leak info. # This adds backtrace information to the memory leak info.
my $memleak_devteam_backtrace = "-rdynamic -DCRYPTO_MDEBUG_BACKTRACE"; my $memleak_devteam_backtrace = "-rdynamic -DCRYPTO_MDEBUG_BACKTRACE";
@ -2152,13 +2155,8 @@ EOF
(system $make_command.$make_targets) == 0 or die "make $make_targets failed" (system $make_command.$make_targets) == 0 or die "make $make_targets failed"
if $make_targets ne ""; if $make_targets ne "";
if ($depflags ne $default_depflags && !$make_depend) { if ($depflags ne $default_depflags && !$make_depend) {
print <<EOF; $warn_make_depend++;
}
Since you've disabled or enabled at least one algorithm, you need to do
the following before building:
make depend
EOF
} }
} }
@ -2238,12 +2236,18 @@ EOF
print <<\EOF if ($no_shared_warn); print <<\EOF if ($no_shared_warn);
You gave the option 'shared'. Normally, that would give you shared libraries. You gave the option 'shared', which is not supported on this platform, so
Unfortunately, the OpenSSL configuration doesn't include shared library support we will pretend you gave the option 'no-shared'. If you know how to implement
for this platform yet, so it will pretend you gave the option 'no-shared'. If shared libraries, please let us know (but please first make sure you have
you can inform the developpers (openssl-dev\@openssl.org) how to support shared tried with a current version of OpenSSL).
libraries on this platform, they will at least look at it and try their best EOF
(but please first make sure you have tried with a current version of OpenSSL).
print <<EOF if ($warn_make_depend);
*** Because of configuration changes, you MUST do the following before
*** building:
make depend
EOF EOF
exit(0); exit(0);