diff --git a/setup.py b/setup.py index 6ba728ae..3e405bc4 100644 --- a/setup.py +++ b/setup.py @@ -74,7 +74,7 @@ def spawn(self, cmd): else: flags = ['-fPIC', '-std=c++0x', '-Wall', '-Wno-parentheses'] platform.mac_ver() - if platform.system() == 'Darwin': + if platform.system() in ['Darwin', 'FreeBSD']: os.environ['CC'] = os.environ['CXX'] = 'c++' orig_customize_compiler = distutils.sysconfig.customize_compiler @@ -88,12 +88,13 @@ def customize_compiler(compiler): distutils.sysconfig.customize_compiler = customize_compiler flags.extend([ '-stdlib=libc++', - '-mmacosx-version-min=10.7', ]) - if tuple(map(int, platform.mac_ver()[0].split('.'))) >= (10, 9): - flags.append( - '-Wno-error=unused-command-line-argument-hard-error-in-future', - ) + if platform.system() == 'Darwin': + flags.append('-mmacosx-version-min=10.7',) + if tuple(map(int, platform.mac_ver()[0].split('.'))) >= (10, 9): + flags.append( + '-Wno-error=unused-command-line-argument-hard-error-in-future', + ) # 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: