summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/dynconfig/wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dynconfig/wscript b/source4/dynconfig/wscript
index ca664fbe6e..c90bf1f4fc 100644
--- a/source4/dynconfig/wscript
+++ b/source4/dynconfig/wscript
@@ -139,9 +139,10 @@ 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='../version.h',
+ public_headers='%s/version.h' % relpath,
header_path='samba',
cflags=cflags)