Configure: add shared() to facilitate shared-specific flags.

This allows to specify flags specific to shared build, e.g.
'bin_lflags => shared("-Wl,-bsvr4")'.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6453)
This commit is contained in:
Andy Polyakov 2018-06-11 12:22:29 +02:00
parent dbb85890a8
commit 60aa6c1a59
1 changed files with 4 additions and 1 deletions

View File

@ -2777,7 +2777,10 @@ sub threads {
return sub { add($disabled{threads} ? () : @flags)->(); }
}
sub shared {
my @flags = @_;
return sub { add($disabled{shared} ? () : @flags)->(); }
}
our $add_called = 0;
# Helper function to implement adding values to already existing configuration