diff --git a/setup.py b/setup.py index 10c92f73..6537c34f 100644 --- a/setup.py +++ b/setup.py @@ -31,14 +31,14 @@ elif platform.system() == 'Darwin': extra_compile_args = FLAGS_CLANG + MACOS_FLAG extra_link_args = LFLAGS_CLANG + MACOS_FLAG -elif platform.system() == 'FreeBSD': +elif platform.system() in {'FreeBSD', 'OpenBSD'}: extra_compile_args = FLAGS_CLANG extra_link_args = LFLAGS_CLANG else: extra_compile_args = FLAGS_POSIX extra_link_args = LFLAGS_POSIX -if platform.system() in {'Darwin', 'FreeBSD'}: +if platform.system() in {'Darwin', 'FreeBSD', 'OpenBSD'}: os.environ.setdefault('CC', 'clang') os.environ.setdefault('CXX', 'clang++') orig_customize_compiler = distutils.sysconfig.customize_compiler @@ -117,7 +117,7 @@ def customize_compiler(compiler): if get_build_version() < 14.0: msvc9compiler.get_build_version = lambda: 14.0 msvc9compiler.VERSION = 14.0 - elif platform.system() in ('Darwin', 'FreeBSD'): + elif platform.system() in {'Darwin', 'FreeBSD', 'OpenBSD'}: # Dirty workaround to avoid link error... # Python distutils doesn't provide any way # to configure different flags for each cc and c++.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: