use an internal build of openssl when fuzzer is enabled

This commit is contained in:
Ailin Nemui 2021-08-30 20:27:35 +02:00
commit a07a4c1ea8
2 changed files with 20 additions and 1 deletions

View file

@ -273,7 +273,12 @@ endif
dep += glib_dep
dep += gmodule_dep
openssl_dep = dependency('openssl', static : want_static_dependency)
if glib_internal and want_static_dependency and want_fuzzer
openssl_proj = subproject('openssl', default_options : ['default_library=static', 'asm=disabled'])
openssl_dep = openssl_proj.get_variable('openssl_dep')
else
openssl_dep = dependency('openssl', static : want_static_dependency)
endif
dep += openssl_dep
############