s4-build: fixed install of version.h from source4 build
authorAndrew Tridgell <tridge@samba.org>
Sat, 5 Feb 2011 02:26:44 +0000 (13:26 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 7 Feb 2011 02:22:01 +0000 (13:22 +1100)
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)