waf:replace: Do not link against libpthread if not necessary
commit9499db075b72b147e2ff9bb78e9d5edbaac14e69
authorAndreas Schneider <asn@samba.org>
Mon, 23 Sep 2019 14:53:12 +0000 (23 16:53 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 25 Sep 2019 15:39:40 +0000 (25 15:39 +0000)
tree1724c517d5116e7150a1a1ec5647991bd3802ab2
parentbd0cd8e13234d684da77a65f6fdaea2572625369
waf:replace: Do not link against libpthread if not necessary

On Linux we should avoid linking everything against libpthread. Symbols
used my most application are provided by glibc and code which deals with
threads has to explicitly link against libpthread.  This avoids setting
LDFLAGS=-pthread globally.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14140

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Isaac Boukris <iboukris@gmail.com>
Pair-Programmed-With: Isaac Boukris <iboukris@gmail.com>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
lib/replace/wscript