diff --git a/libs/fst/wscript b/libs/fst/wscript index 4a1e4908f7..7242024b2e 100644 --- a/libs/fst/wscript +++ b/libs/fst/wscript @@ -86,7 +86,7 @@ def build(bld): 'PACKAGE="' + I18N_PACKAGE + str(bld.env['MAJOR']) + '"', 'LIBARDOUR="' + bld.env['lwrcase_dirname'] + '"', ] - if re.search ("freebsd", sys.platform) != None or re.search ("openbsd", sys.platform) != None: + if re.search ("bsd", sys.platform) != None: obj.defines.append('_POSIX_C_SOURCE=200809') obj.defines.append('_XOPEN_SOURCE=700') diff --git a/tools/gccabicheck/wscript b/tools/gccabicheck/wscript index afdb99f506..1b89cf57dd 100644 --- a/tools/gccabicheck/wscript +++ b/tools/gccabicheck/wscript @@ -21,6 +21,6 @@ def build(bld): obj.source = [ 'abicheck.c' ] obj.target = 'gcc-glibmm-abi-check' obj.name = 'gcc-glibmm-abi-check' - if re.search ("freebsd", sys.platform) == None: + if re.search ("bsd", sys.platform) == None: obj.lib = 'dl' obj.install_path = None diff --git a/wscript b/wscript index 14540cdedf..8270411ae5 100644 --- a/wscript +++ b/wscript @@ -656,7 +656,7 @@ int main() { return 0; }''', if opt.stl_debug: cxx_flags.append("-D_GLIBCXX_DEBUG") - if re.search ("freebsd", sys.platform) != None or re.search ("openbsd", sys.platform) != None: + if re.search ("bsd", sys.platform) != None: linker_flags.append('-lexecinfo') if conf.env['DEBUG_RT_ALLOC']: @@ -1059,7 +1059,7 @@ def configure(conf): # executing a test program is n/a when cross-compiling if Options.options.dist_target != 'mingw': - if Options.options.dist_target != 'msvc' and re.search ("openbsd", sys.platform) == None: + if Options.options.dist_target != 'msvc' and re.search ("(open|net)bsd", sys.platform) == None: if re.search ("freebsd", sys.platform) != None: conf.check_cc( msg="Checking for function 'dlopen' in dlfcn.h",