Commit 60aa6c1a authored by Andy Polyakov's avatar Andy Polyakov
Browse files

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: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6453)
parent dbb85890
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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