Make execstack optional, and check clang's variant with space

see also ec5b06e63d
and https://discourse.ardour.org/t/fyi-ardour-9-doesnt-build-on-linux-using-clang/111896
This commit is contained in:
Robin Gareus
2025-06-10 16:13:44 +02:00
parent 949585f746
commit 877f603d92
7 changed files with 18 additions and 19 deletions

View File

@@ -34,7 +34,7 @@ def build(bld):
obj.source = 'luasession.cc'
obj.target = 'luasession'
obj.includes = ['../libs']
obj.linkflags = ''
obj.linkflags = bld.env['compiler_flags_dict']['execstack']
obj.use = ['liblua',
'libpbd',
'libardour',
@@ -69,8 +69,6 @@ def build(bld):
obj.use += ' libappleutility'
elif bld.env['build_target'] == 'mingw':
obj.linkflags += ' -mwindows'
else:
obj.linkflags += ' -zexecstack'
if bld.is_defined('NEED_INTL'):
obj.linkflags += ' -lintl'