wscript: set conf.env.replace_add_global_pthread = True
authorStefan Metzmacher <metze@samba.org>
Thu, 16 May 2013 09:48:02 +0000 (11:48 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 22 May 2014 19:05:15 +0000 (21:05 +0200)
In Samba we currently add PTHREAD CFLAGS/LDFLAGS globally.
The following changes will move the configure checks to
lib/replace and the the default of adding the flags globally will change there.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
wscript

diff --git a/wscript b/wscript
index 80587ef349f17d5bfbcde078cf9112c33b3ba8cd..58af180d8871c072974b0e1b2926215e2cc61fb7 100644 (file)
--- a/wscript
+++ b/wscript
@@ -96,6 +96,7 @@ def configure(conf):
 
     conf.ADD_EXTRA_INCLUDES('#include/public #source4 #lib #source4/lib #source4/include #include #lib/replace')
 
+    conf.env.replace_add_global_pthread = True
     conf.RECURSE('lib/replace')
 
     conf.find_program('perl', var='PERL', mandatory=True)