(self, arch, with_flags_in_cc=True)
| 1210 | self.cythonize_file(env, build_dir, join(root, filename)) |
| 1211 | |
| 1212 | def get_recipe_env(self, arch, with_flags_in_cc=True): |
| 1213 | env = super().get_recipe_env(arch, with_flags_in_cc) |
| 1214 | env['LDFLAGS'] = env['LDFLAGS'] + ' -L{} '.format( |
| 1215 | self.ctx.get_libs_dir(arch.arch) + |
| 1216 | ' -L{} '.format(self.ctx.libs_dir) + |
| 1217 | ' -L{}'.format(join(self.ctx.bootstrap.build_dir, 'obj', 'local', |
| 1218 | arch.arch))) |
| 1219 | |
| 1220 | env['LDSHARED'] = env['CC'] + ' -shared' |
| 1221 | # shprint(sh.whereis, env['LDSHARED'], _env=env) |
| 1222 | env['LIBLINK'] = 'NOTNONE' |
| 1223 | if self.ctx.copy_libs: |
| 1224 | env['COPYLIBS'] = '1' |
| 1225 | |
| 1226 | # Every recipe uses its own liblink path, object files are |
| 1227 | # collected and biglinked later |
| 1228 | liblink_path = join(self.get_build_container_dir(arch.arch), |
| 1229 | 'objects_{}'.format(self.name)) |
| 1230 | env['LIBLINK_PATH'] = liblink_path |
| 1231 | ensure_dir(liblink_path) |
| 1232 | |
| 1233 | return env |
| 1234 | |
| 1235 | |
| 1236 | class PyProjectRecipe(PythonRecipe): |
no test coverage detected