mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
This is required on some modern hardneded Linux systems to allow to dlopen executable objects (load plugins). https://discourse.ardour.org/t/tls-1295-lea-so-linux-vers-doesnt-work/111778/20?u=x42
27 lines
530 B
Python
27 lines
530 B
Python
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
|
|
def options(opt):
|
|
pass
|
|
|
|
def configure(conf):
|
|
pass
|
|
|
|
def build(bld):
|
|
if bld.env['build_target'] == 'mingw':
|
|
return
|
|
|
|
obj = bld (features = 'c cprogram')
|
|
obj.source = 'exec_wrapper.c'
|
|
obj.target = 'ardour-exec-wrapper'
|
|
obj.install_path = os.path.join(bld.env['LIBDIR'])
|
|
obj.defines = [
|
|
'_POSIX_SOURCE',
|
|
'_XOPEN_SOURCE=500',
|
|
]
|
|
|
|
if sys.platform == 'darwin':
|
|
pass
|
|
else:
|
|
obj.linkflags = ' -zexecstack'
|