Configure: add shared() to facilitate shared-specific flags.
authorAndy Polyakov <appro@openssl.org>
Mon, 11 Jun 2018 10:22:29 +0000 (12:22 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 13 Jun 2018 08:47:43 +0000 (10:47 +0200)
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)

Configure

index 62c354abf0d8d5503e83561df4f8237db9acf202..bcf2c041097383eabea31231847061911ba78147 100755 (executable)
--- 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