mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
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>
This commit is contained in:
parent
a8a9183400
commit
730745d560
@ -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')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user