diff options
author | Robin Gareus <robin@gareus.org> | 2016-06-26 16:43:07 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-06-26 16:43:07 +0200 |
commit | 86763cba906dba3fdbc0c99a42a3f7123eaa380d (patch) | |
tree | 2d682830df4637d1b75fab880ec0f2ce98af6b13 /wscript | |
parent | e37b250d4d3d483e708db60ac9774342fd4b9700 (diff) |
Enable build for FreeBSD (part 1/2)
Adopted from Michael Beer -- GH pull-request #232 with minor changes:
* rebased on master,
* removed trailing whitespace,
* don't explicitly change saved configuration defaults (wscript)
* moved sys/wait (WNOHANG) to header include
* separate changes in GUI and lib
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -568,6 +568,9 @@ int main() { return 0; }''', if opt.stl_debug: cxx_flags.append("-D_GLIBCXX_DEBUG") + if re.search ("freebsd", sys.platform) != None: + linker_flags.append('-lexecinfo') + if conf.env['DEBUG_RT_ALLOC']: compiler_flags.append('-DDEBUG_RT_ALLOC') linker_flags.append('-ldl') @@ -940,7 +943,10 @@ 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': - conf.check_cc(function_name='dlopen', header_name='dlfcn.h', lib='dl', uselib_store='DL') + if re.search ("freebsd", sys.platform) != None: + conf.check_cc(function_name='dlopen', header_name='dlfcn.h', uselib_store='DL') + else: + conf.check_cc(function_name='dlopen', header_name='dlfcn.h', lib='dl', uselib_store='DL') conf.check_cxx(fragment = "#include <boost/version.hpp>\nint main(void) { return (BOOST_VERSION >= 103900 ? 0 : 1); }\n", execute = "1", mandatory = True, |