diff options
-rw-r--r-- | source3/wscript_build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/wscript_build b/source3/wscript_build index 0ff2593d3c..c7bc361821 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -665,8 +665,13 @@ SPLIT_TOKENS_SRC = 'utils/split_tokens.c' LIBS='ICONV' +if bld.env.toplevel_build: + config_h = "../include/config.h" +else: + config_h = "include/config.h" + bld.SAMBA_GENERATOR('build_options', - source='include/config.h script/mkbuildoptions-waf.awk', + source= config_h + ' script/mkbuildoptions-waf.awk', target='smbd/build_options.c', rule='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}') |