diff --git a/setup.py b/setup.py index bd945c266..bd660d65f 100644 --- a/setup.py +++ b/setup.py @@ -176,7 +176,7 @@ def determine_base_flags(): 'extra_link_args': [], 'extra_compile_args': []} if c_options['use_ios']: - sysroot = '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk' + sysroot = environ['SDKROOT'] flags['include_dirs'] += [sysroot] flags['extra_compile_args'] += ['-isysroot', sysroot] flags['extra_link_args'] += ['-isysroot', sysroot]