Ticket #62488: patch-add-STDC_NO_THREADS.diff
File patch-add-STDC_NO_THREADS.diff, 2.6 KB (added by michaelld (Michael Dickens), 3 years ago) |
---|
-
scipy/integrate/setup.py
old new 37 37 config.add_library('mach', sources=mach_src, config_fc={'noopt': (__file__, 1)}, 38 38 _pre_build_hook=pre_build_hook) 39 39 config.add_library('quadpack', sources=quadpack_src, _pre_build_hook=pre_build_hook) 40 config.add_library('lsoda', sources=lsoda_src, _pre_build_hook=pre_build_hook)41 config.add_library('vode', sources=vode_src, _pre_build_hook=pre_build_hook)42 config.add_library('dop', sources=dop_src, _pre_build_hook=pre_build_hook)40 config.add_library('lsoda', sources=lsoda_src, macros=[('__STDC_NO_THREADS__','1'),], _pre_build_hook=pre_build_hook) 41 config.add_library('vode', sources=vode_src, macros=[('__STDC_NO_THREADS__','1'),], _pre_build_hook=pre_build_hook) 42 config.add_library('dop', sources=dop_src, macros=[('__STDC_NO_THREADS__','1'),], _pre_build_hook=pre_build_hook) 43 43 44 44 # Extensions 45 45 # quadpack: -
scipy/linalg/setup.py
old new 59 59 config.add_extension('_flapack', 60 60 sources=sources, 61 61 depends=depends, 62 extra_info=lapack_opt 62 extra_info=lapack_opt, 63 define_macros=[('__STDC_NO_THREADS__','1'),] 63 64 ) 64 65 65 66 if uses_blas64(): … … 96 97 ext = config.add_extension('_interpolative', 97 98 sources=[join('src', 'id_dist', 'src', '*.f'), 98 99 "interpolative.pyf"], 99 extra_info=lapack_opt 100 extra_info=lapack_opt, 101 define_macros=[('__STDC_NO_THREADS__','1'),] 100 102 ) 101 103 ext._pre_build_hook = gfortran_legacy_flag_hook 102 104 -
scipy/optimize/setup.py
old new 77 77 depends=[join('tnc', 'tnc.h')], 78 78 **numpy_nodepr_api) 79 79 80 numpy_nodepr_api_mod = numpy_nodepr_api 81 if numpy_nodepr_api_mod.__contains__ ('define_macros'): 82 tdf = numpy_nodepr_api_mod.__getitem__ ('define_macros') 83 tdf.append (('__STDC_NO_THREADS__','1')) 80 84 config.add_extension('_cobyla', 81 85 sources=[join('cobyla', x) for x in [ 82 86 'cobyla.pyf', 'cobyla2.f', 'trstlp.f']], 83 **numpy_nodepr_api )87 **numpy_nodepr_api_mod) 84 88 85 89 sources = ['minpack2.pyf', 'dcsrch.f', 'dcstep.f'] 86 90 config.add_extension('minpack2',