Changeset 8fcbd37


Ignore:
Timestamp:
Nov 28, 2016, 4:27:34 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
7cfb55a
Parents:
598774b
Message:

wscript: check for pthread.h libpthread

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/wscript_build

    r598774b r8fcbd37  
    1212uselib += ['AVUTIL']
    1313uselib += ['BLAS']
     14uselib += ['PTHREAD']
    1415
    1516source = ctx.path.ant_glob('*.c **/*.c')
  • wscript

    r598774b r8fcbd37  
    124124    ctx.check(header_name='unistd.h', mandatory = False)
    125125
     126    ctx.check(header_name='pthread.h', mandatory = False)
     127    needs_pthread = ctx.get_define("HAVE_PTHREAD_H") is not None
     128    if needs_pthread:
     129        ctx.check_cc(lib="pthread", uselib_store="PTHREAD", mandatory=needs_pthread)
     130
    126131    target_platform = sys.platform
    127132    if ctx.options.target_platform:
Note: See TracChangeset for help on using the changeset viewer.