From: Andy Polyakov Date: Mon, 11 Jun 2018 10:22:29 +0000 (+0200) Subject: Configure: add shared() to facilitate shared-specific flags. X-Git-Tag: OpenSSL_1_1_1-pre8~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=60aa6c1a590de47acdd290a60e25b87005a35b8f;p=oweals%2Fopenssl.git 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 (Merged from https://github.com/openssl/openssl/pull/6453) --- diff --git a/Configure b/Configure index 62c354abf0..bcf2c04109 100755 --- a/Configure +++ b/Configure @@ -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