From 72ca88d6047e3dcce53c720db866171fb9963914 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 3 Mar 2011 18:06:00 +1100 Subject: build: fixed cflags for test_header when using system libraries, we need the right cflags --- testsuite/headers/wscript_build | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testsuite/headers/wscript_build') diff --git a/testsuite/headers/wscript_build b/testsuite/headers/wscript_build index 4d383a117fd..b2b88fe4d86 100644 --- a/testsuite/headers/wscript_build +++ b/testsuite/headers/wscript_build @@ -23,11 +23,18 @@ bld.SAMBA_GENERATOR('test_headers.h', source=public_headers, target='test_headers.h') +cflags='' +for lib in ['talloc', 'tevent', 'tdb', 'ldb' ]: + ename = 'CPPPATH_%s' % lib.upper() + for p in bld.env[ename]: + cflags += bld.env.CPPPATH_ST % p + ' ' + if bld.env.DEVELOPER_MODE: bld.SAMBA_BINARY('test_headers', source='test_headers.c', includes="#include/public", pyembed=True, + cflags=cflags, local_include=True, global_include=False, use_global_deps=False, -- cgit