mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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:
parent
4f434154a0
commit
8c617d6a58
1 changed files with 11 additions and 1 deletions
|
|
@ -8,12 +8,22 @@ def options(opt):
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
conf.check_cc(
|
conf.check_cc(
|
||||||
|
msg = 'Checking for static libreadline',
|
||||||
header_name='stdio.h readline/readline.h',
|
header_name='stdio.h readline/readline.h',
|
||||||
lib='readline',
|
lib= [':libreadline.a', 'termcap'],
|
||||||
uselib_store='READLINE',
|
uselib_store='READLINE',
|
||||||
define_name='HAVE_READLINE',
|
define_name='HAVE_READLINE',
|
||||||
mandatory=False)
|
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):
|
def build(bld):
|
||||||
if not bld.is_defined('HAVE_READLINE'):
|
if not bld.is_defined('HAVE_READLINE'):
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue