Skip to content

Commit 3c305b8

Browse files
committed
build: avoid breaking cross builds with OpenSSL enabled
The OpenSSL sanity check wants to be executed, thus we should only try this if it's possible. Since this is just a warning, we can just skip it if if it is not possible. Signed-off-by: Daniel Wagner <wagi@kernel.org>
1 parent 81ade08 commit 3c305b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ else
252252
conf.set('fallthrough', 'do {} while (0) /* fallthrough */')
253253
endif
254254

255-
if openssl_dep.found()
255+
if openssl_dep.found() and meson.can_run_host_binaries()
256256
if openssl_dep.type_name() != 'internal'
257257
# Check for a bug in the EVP_PKEY_CTX_add1_hkdf_info implementation
258258
res = cc.run(

0 commit comments

Comments
 (0)