summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-02-09 09:39:07 +0000
committerMatt Caswell <matt@openssl.org>2016-02-09 15:11:38 +0000
commit498abff0ae907dce08f37a1353976755e8c8120e (patch)
tree523033d5c005cbe95a4c56c57c8f25a5f452932b /util
parent71567a6f418ed1dc42d4c5ec57f72d3119b75966 (diff)
Add an OPENSSL_NO_AUTOERRINIT option
This option disables automatic loading of the crypto/ssl error strings in order to keep statically linked executable file size down Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/mk1mf.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl
index e7cbea883d..1e72b9003b 100755
--- a/util/mk1mf.pl
+++ b/util/mk1mf.pl
@@ -144,6 +144,7 @@ and [options] can be one of
no-hw - No hw
no-async - No Async (use NULL)
no-autoalginit - Don't auto load algorithms in libcrypto
+ no-autoerrinit - Don't auto load error strings for libcrypto or libssl
nasm - Use NASM for x86 asm
nw-nasm - Use NASM x86 asm for NetWare
nw-mwasm - Use Metrowerks x86 asm for NetWare
@@ -300,6 +301,7 @@ $cflags.=" -DOPENSSL_NO_ENGINE" if $no_engine;
$cflags.=" -DOPENSSL_NO_HW" if $no_hw;
$cflags.=" -DOPENSSL_NO_ASYNC" if $no_async;
$cflags.=" -DOPENSSL_NO_AUTOALGINIT" if $no_autoalginit;
+$cflags.=" -DOPENSSL_NO_AUTOERRINIT" if $no_autoerrinit;
$cflags.=" -DOPENSSL_FIPS" if $fips;
$cflags.=" -DOPENSSL_NO_JPAKE" if $no_jpake;
$cflags.=" -DOPENSSL_NO_EC2M" if $no_ec2m;
@@ -1417,6 +1419,7 @@ sub read_options
"no-hw" => \$no_hw,
"no-async" => \$no_async,
"no-autoalginit" => \$no_autoalginit,
+ "no-autoerrinit" => \$no_autoerrinit,
"just-ssl" =>
[\$no_rc2, \$no_idea, \$no_des, \$no_bf, \$no_cast,
\$no_md2, \$no_mdc2, \$no_dsa, \$no_dh,