ardour/libs/vfork/wscript
Robin Gareus ec5b06e63d
Set executable stack flag when linking
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
2025-05-11 15:58:00 +02:00

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'