aboutsummaryrefslogtreecommitdiff
path: root/openssl/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-02-12 21:05:38 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-02-12 21:05:38 +0300
commitfe72aa9de64384b0f1465d4862f09caa3bc12f20 (patch)
tree6ff9a899a2b5d62450aed7f66db94ee023383cdb /openssl/buildfile
parente9b69c3206a3a0f88ad234964dee3ea1e6a5a3b2 (diff)
Use copyright extracted from COPYRIGHT file for printing utility version
Diffstat (limited to 'openssl/buildfile')
-rw-r--r--openssl/buildfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/openssl/buildfile b/openssl/buildfile
index 2d0e680..ab25be9 100644
--- a/openssl/buildfile
+++ b/openssl/buildfile
@@ -49,6 +49,17 @@ for t: cxx{**.test...}
$d/exe{$n}: $d/libue{openssl}: bin.whole = false
}
+# Build options.
+#
+# Pass the copyright notice extracted from the COPYRIGHT file.
+#
+copyright = $process.run_regex(cat $src_root/COPYRIGHT, \
+ 'Copyright \(c\) (.+)\.', \
+ '\1')
+
+obj{agent/pkcs11/agent client/client}: \
+ cxx.poptions += -DOPENSSL_AGENT_COPYRIGHT=\"$copyright\"
+
# Generated options parser.
#
if $cli.configured