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.
This commit is contained in:
Robin Gareus 2025-11-21 13:36:36 +01:00
parent 4f434154a0
commit 8c617d6a58
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -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