From 0d255f07bf46948289a2698a4a7063514d0e1ef9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 28 Nov 2013 19:28:38 +0100 Subject: build: make pthreads mandatory pthreads should be available anywhere. Even if not, for environment without threads a pthread wrapper could be provided that can't actually start threads, thus disabling features that require threads. Make pthreads mandatory in order to simplify build dependencies and to reduce ifdeffery. (Admittedly, there wasn't much complexity, but maybe we will use pthreads more in the future, and then it'd become a real bother.) --- wscript | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 17dec8d1f9..9e42001048 100644 --- a/wscript +++ b/wscript @@ -88,9 +88,11 @@ main_dependencies = [ 'desc': 'mman.h', 'func': check_statement('sys/mman.h', 'mmap(0, 0, 0, 0, 0, 0)') }, { - 'name': '--pthreads', + 'name': 'pthreads', 'desc': 'POSIX threads', 'func': check_pthreads, + 'req': True, + 'fmsg': 'Unable to find pthreads support.' }, { 'name': 'librt', 'desc': 'linking with -lrt', @@ -114,11 +116,6 @@ iconv support use --disable-iconv.", 'desc': 'w32 priority API', 'deps_any': [ 'os-win32', 'os-cygwin'], 'func': check_true - }, { - 'name': 'stream-cache', - 'desc': 'stream cache', - 'deps': [ 'pthreads' ], - 'func': check_true }, { 'name': 'soundcard', 'desc': 'soundcard.h', -- cgit v1.2.3