summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2018-06-11 12:22:29 +0200
committerAndy Polyakov <appro@openssl.org>2018-06-13 10:47:43 +0200
commit60aa6c1a590de47acdd290a60e25b87005a35b8f (patch)
treebe7824ca9e82d9a2c128209ab17623eb2de965a6
parentdbb85890a85af25db35dbd710ac07b3c704a27f0 (diff)
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)
-rwxr-xr-xConfigure5
1 files changed, 4 insertions, 1 deletions
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