From 8c617d6a58f52f0cc0729974425e65890a9644af Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 21 Nov 2025 13:36:36 +0100 Subject: [PATCH] Statically link luasession against libreadline This avoids potential conflicts with system-wide libreadline, since Ardour binaries no longer need to bundle libreadline.so. Mainly a workaround for yabridge/wine on recent systems. --- luasession/wscript | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/luasession/wscript b/luasession/wscript index f8ff0ba5be..f225536071 100644 --- a/luasession/wscript +++ b/luasession/wscript @@ -8,12 +8,22 @@ def options(opt): def configure(conf): conf.check_cc( + msg = 'Checking for static libreadline', header_name='stdio.h readline/readline.h', - lib='readline', + lib= [':libreadline.a', 'termcap'], uselib_store='READLINE', define_name='HAVE_READLINE', mandatory=False) + if not conf.is_defined('HAVE_READLINE'): + conf.check_cc( + msg = 'Checking for libreadline', + header_name='stdio.h readline/readline.h', + lib='readline', + uselib_store='READLINE', + define_name='HAVE_READLINE', + mandatory=False) + def build(bld): if not bld.is_defined('HAVE_READLINE'): return