Skip to content

Commit 50ec8d9

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 it is not possible. Tested-by: Bernd Kuhls <[email protected]> Signed-off-by: Daniel Wagner <[email protected]>
1 parent b092a10 commit 50ec8d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libnvme/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)