third_party: Link nss_wrapper against pthread
authorAndreas Schneider <asn@samba.org>
Mon, 23 Sep 2019 15:39:29 +0000 (17:39 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 25 Sep 2019 15:39:40 +0000 (15:39 +0000)
nss_wrapper uses pthread_atfork() which is only provided by libpthread.
So we need an explicit dependency.

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>
third_party/nss_wrapper/wscript

index 127b5207c5e29b035b5a837e448269f4256a719a..7a2f53ad299ae0954092cb6e9b0abe026158e4eb 100644 (file)
@@ -90,6 +90,6 @@ def build(bld):
         # breaks preloading!
         bld.SAMBA_LIBRARY('nss_wrapper',
                           source='nss_wrapper.c',
-                          deps='dl',
+                          deps='dl pthread',
                           install=False,
                           realname='libnss-wrapper.so')