關(guān)閉掉一些不需要編譯的內(nèi)部算法源碼目錄可以:
具體辦法诬留,修改Configure檔案下的編譯目錄鸠珠,比如授艰,只需要chacha20-poly1305:
# Top level directories to build
#$config{dirs} = [ "crypto", "ssl", "engines", "apps", "test", "util", "tools", "fuzz" ];
# crypto/ subdirectories to build
#$config{sdirs} = [
# "objects",
# "md2", "md4", "md5", "sha", "mdc2", "hmac", "ripemd", "whrlpool", "poly1305", "blake2", "siphash", "sm3",
# "des", "aes", "rc2", "rc4", "rc5", "idea", "aria", "bf", "cast", "camellia", "seed", "sm4", "chacha", "modes",
# "bn", "ec", "rsa", "dsa", "dh", "sm2", "dso", "engine",
# "buffer", "bio", "stack", "lhash", "rand", "err",
# "evp", "asn1", "pem", "x509", "x509v3", "conf", "txt_db", "pkcs7", "pkcs12", "comp", "ocsp", "ui",
# "cms", "ts", "srp", "cmac", "ct", "async", "kdf", "store"
# ];
# Top level directories to build
$config{dirs} = [ "crypto"];
# crypto/ subdirectories to build
$config{sdirs} = [
"poly1305", "chacha"
];
如何裁減openssl庫常懷感恩之心——魯迅 常規(guī)編譯的openssl庫一般包含libssl和libcrypto兩個目標(biāo)庫文件,libssl.so通常為0.5M左右爱沟, libcrypto.so為2....