Changeset 8fcbd37 for wscript


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.