(libname, whole_archive=False)
| 2337 | logger.debug(f'forcing stdlibs: {force_include}') |
| 2338 | |
| 2339 | def add_library(libname, whole_archive=False): |
| 2340 | lib = system_libs_map[libname] |
| 2341 | if lib.name in already_included: |
| 2342 | return |
| 2343 | already_included.add(lib.name) |
| 2344 | |
| 2345 | logger.debug('including %s (%s)' % (lib.name, lib.get_filename())) |
| 2346 | |
| 2347 | need_whole_archive = lib.name in force_include and lib.get_ext() == '.a' |
| 2348 | libs_to_link.append((lib.get_link_flag(), whole_archive or need_whole_archive)) |
| 2349 | |
| 2350 | if not options.nostartfiles: |
| 2351 | if settings.PTHREADS: |
no test coverage detected