diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-05-16 11:50:38 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-22 21:05:15 +0200 |
commit | 730745d560c70160a81e26c84c8bef82589b382f (patch) | |
tree | 5a3271534e18d66a745cb9107b7986c85bbe5e4c /lib/replace/wscript | |
parent | a8a9183400a4463d5eb9aa1744573b8fac8eca5d (diff) | |
download | samba-730745d560c70160a81e26c84c8bef82589b382f.tar.gz samba-730745d560c70160a81e26c84c8bef82589b382f.tar.xz samba-730745d560c70160a81e26c84c8bef82589b382f.zip |
libreplace: only add PTHREAD CFLAGS and LDFLAGS globally if asked for
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 45e5d908456..483c0dcec86 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -449,8 +449,9 @@ removeea setea PTHREAD_LDFLAGS='-lpthread' if PTHREAD_CFLAGS != 'error' and PTHREAD_LDFLAGS != 'error': - conf.ADD_CFLAGS(PTHREAD_CFLAGS) - conf.ADD_LDFLAGS(PTHREAD_LDFLAGS) + if conf.CONFIG_SET('replace_add_global_pthread'): + conf.ADD_CFLAGS(PTHREAD_CFLAGS) + conf.ADD_LDFLAGS(PTHREAD_LDFLAGS) conf.CHECK_HEADERS('pthread.h') conf.DEFINE('HAVE_PTHREAD', '1') |