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

@@ -25,7 +25,7 @@ def build_ardour_util(bld, util):
obj.source = ['common.cc', util + '.cc' ]
obj.target = pgmprefix + '-' + util
obj.includes = ['.']
obj.linkflags= ''
obj.linkflags= bld.env['compiler_flags_dict']['execstack']
obj.use = [ 'libpbd',
'libardour',
'libardour_cp',
@@ -59,8 +59,6 @@ def build_ardour_util(bld, util):
obj.use += ' libappleutility'
elif bld.env['build_target'] == 'mingw':
obj.linkflags += ' -mwindows'
else:
obj.linkflags += ' -zexecstack'
obj.includes += ['../libs']