mirror of https://github.com/openssl/openssl
Configure: die if there are other arguments with 'reconf'
It's better to inform the user about this than silently ignoring something that the user might expect to work, somehow. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4818)
This commit is contained in:
parent
a064c6158e
commit
99aeeecb9f
|
@ -211,6 +211,8 @@ $config{builddir} = abs2rel($blddir);
|
||||||
my @argvcopy=@ARGV;
|
my @argvcopy=@ARGV;
|
||||||
|
|
||||||
if (grep /^reconf(igure)?$/, @argvcopy) {
|
if (grep /^reconf(igure)?$/, @argvcopy) {
|
||||||
|
die "reconfiguring with other arguments present isn't supported"
|
||||||
|
if scalar @argvcopy > 1;
|
||||||
if (-f "./configdata.pm") {
|
if (-f "./configdata.pm") {
|
||||||
my $file = "./configdata.pm";
|
my $file = "./configdata.pm";
|
||||||
unless (my $return = do $file) {
|
unless (my $return = do $file) {
|
||||||
|
|
Loading…
Reference in New Issue