From ec8c8debd42b9bcfc6b07f847a11dcb1b87ff8a1 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 27 Feb 2022 18:38:36 +0100 Subject: [PATCH] [meson] find bzip2 in case of no .pc file --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 72a756d1..9b475fae 100644 --- a/meson.build +++ b/meson.build @@ -255,7 +255,10 @@ if conf_data.get('CONFIG_X') endif if conf_data.get('CONFIG_BZIP2') - bz2deps = dependency('bzip2', static: st) + bz2deps = dependency('bzip2', static: st, required: false) + if not bz2deps.found() + bz2deps = compiler.find_library('bz2', static: st) + endif deps += bz2deps endif