intel / QAT_Engine

Intel QuickAssist Technology( QAT) OpenSSL Engine (an OpenSSL Plug-In Engine) which provides cryptographic acceleration for both hardware and optimized software using Intel QuickAssist Technology enabled Intel platforms. https://developer.intel.com/quickassist
BSD 3-Clause "New" or "Revised" License
410 stars 128 forks source link

how to static link openssl library #137

Open jazune opened 4 years ago

jazune commented 4 years ago

libqat.so is dynamic linked with openssl library, but how to static linked with openssl library? I changed MAKE = perl $(with_openssl_dir)/util/mkerr.pl -conf e_qat.ec \ -rebuild -reindex -static -write $(libqat_la_SOURCES) && make but it seems can't work

perl ../openssl-1.1.0h/util/mkerr.pl -conf e_qat.ec -rebuild -reindex -static -write e_qat.c qat_fork.c qat_events.c qat_callback.c qat_polling.c qat_asym_common.c qat_utils.c qat_rsa.c qat_rsa_crt.c qat_ciphers.c qat_dh.c qat_dsa.c qat_ec.c qat_prf.c cmn_mem_drv_inf.c e_qat_err.c && make all-am Can't open source file -static

Yogaraj-Alamenda commented 4 years ago

Hi @jazune , The -nostatic in the line you had mentioned is the option for mkerr.pl for loading functions in the e_qat_err files and has nothing to do with static and dynamic library. From OpenSSL 1.1.0, all the 3rd party engines are loaded dynamically at run time. Compiling the engine statically would require to make significant changes to the Makefiles of OpenSSL.

Our goal is to provide an engine that works with a vanilla version of OpenSSL and for this reason we don't plan to add support for static compilation.

jazune commented 4 years ago

Hi @Yogaraj-Alamenda , thanks for the clarification! Can you answer another issue about multi-thread for me? Thank you very much.