From 2ee5c1a2e831f45c81ddc82dc27cfbb65bdb8db7 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 12 Jul 2022 21:18:35 +0200 Subject: [PATCH] [meson] djgpp has no pkgconfig file for expat --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f48defa6..a430b5c5 100644 --- a/meson.build +++ b/meson.build @@ -385,7 +385,10 @@ if conf_data.get('CONFIG_SCRIPTING_LUA') endif if conf_data.get('CONFIG_XBEL_BOOKMARKS') - expatdeps = dependency('expat', static: st) + expatdeps = dependency('expat', static: st, required: false) + if not expatdeps.found() + expatdeps = compiler.find_library('expat', static: st, dirs: ['/usr/local/lib']) + endif deps += expatdeps endif