buildtools/wafsamba: change SAMBA_BUILD_ENV to use bldnode.abspath()
authorAlexander Bokovoy <ab@samba.org>
Wed, 27 Jun 2018 10:45:56 +0000 (13:45 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 04:37:26 +0000 (06:37 +0200)
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/wafsamba.py

index 0ee064421fa3820112fd31a741cd0229411228fa..98cfdcebe6cfa679f557058a04a57c76ae1752a6 100644 (file)
@@ -57,7 +57,7 @@ call the right version of waf.''')
 @conf
 def SAMBA_BUILD_ENV(conf):
     '''create the samba build environment'''
-    conf.env.BUILD_DIRECTORY = getattr(Context.g_module, Context.OUT)
+    conf.env.BUILD_DIRECTORY = conf.bldnode.abspath()
     mkdir_p(os.path.join(conf.env.BUILD_DIRECTORY, LIB_PATH))
     mkdir_p(os.path.join(conf.env.BUILD_DIRECTORY, LIB_PATH, "private"))
     mkdir_p(os.path.join(conf.env.BUILD_DIRECTORY, "modules"))