s4-build: fixed install of version.h from source4 build
[nivanova/samba-autobuild/.git] / source4 / dynconfig / wscript
index c90bf1f4fcbbcaaee2b12d3604f0f1ba7277a3b4..0c5cf079d6977f643234894f12360d7bbcb36b96 100644 (file)
@@ -139,10 +139,9 @@ Build.BuildContext.dynconfig_cflags = dynconfig_cflags
 
 def build(bld):
     cflags = bld.dynconfig_cflags()
-    relpath = os.path.relpath(bld.env.srcdir, bld.curdir)
     bld.SAMBA_SUBSYSTEM('DYNCONFIG',
                         'dynconfig.c',
                         deps='replace talloc',
-                        public_headers='%s/version.h' % relpath,
+                        public_headers=os.path.relpath(os.path.join(Options.launch_dir, 'version.h'), bld.curdir),
                         header_path='samba',
                         cflags=cflags)