From 60aa6c1a590de47acdd290a60e25b87005a35b8f Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 11 Jun 2018 12:22:29 +0200 Subject: [PATCH] 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) --- Configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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